Viewing file: CdSchedule.php (2.73 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php namespace Modules\Models; class CdSchedule extends \Phalcon\Mvc\Model {
/** * * @var integer * @Primary * @Identity * @Column(column="schid", type="integer", length=11, nullable=false) */ protected $schid;
/** * * @var string * @Column(column="schedule", type="string", length=45, nullable=true) */ protected $schedule;
/** * * @var string * @Column(column="date_creation", type="string", length=45, nullable=true) */ protected $date_creation;
/** * Method to set the value of field schid * * @param integer $schid * @return $this */ public function setSchid($schid) { $this->schid = $schid;
return $this; }
/** * Method to set the value of field schedule * * @param string $schedule * @return $this */ public function setSchedule($schedule) { $this->schedule = $schedule;
return $this; }
/** * Method to set the value of field date_creation * * @param string $date_creation * @return $this */ public function setDateCreation($date_creation) { $this->date_creation = $date_creation;
return $this; }
/** * Returns the value of field schid * * @return integer */ public function getSchid() { return $this->schid; }
/** * Returns the value of field schedule * * @return string */ public function getSchedule() { return $this->schedule; }
/** * Returns the value of field date_creation * * @return string */ public function getDateCreation() { return $this->date_creation; }
/** * Initialize method for model. */ public function initialize() {
$this->setSource("at_schedule"); $this->hasMany('schid', 'CdForm', 'schid', ['alias' => 'CdForm']); }
/** * Returns table name mapped in the model. * * @return string */ public function getSource() { return 'at_schedule'; }
/** * Allows to query a set of records that match the specified conditions * * @param mixed $parameters * @return CdSchedule[]|CdSchedule|\Phalcon\Mvc\Model\ResultSetInterface */ public static function find($parameters = null) { return parent::find($parameters); }
/** * Allows to query the first record that match the specified conditions * * @param mixed $parameters * @return CdSchedule|\Phalcon\Mvc\Model\ResultInterface */ public static function findFirst($parameters = null) { return parent::findFirst($parameters); }
}
|