Viewing file: CdCompany.php (3.45 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php namespace Modules\Models; class CdCompany extends \Phalcon\Mvc\Model {
/** * * @var integer * @Primary * @Identity * @Column(type="integer", length=11, nullable=false) */ protected $comid;
/** * * @var string * @Column(type="string", length=100, nullable=true) */ protected $name;
/** * * @var string * @Column(type="string", nullable=true) */ protected $date_creation;
/** * * @var string * @Column(type="string", length=150, nullable=true) */ protected $logo;
/** * * @var string * @Column(type="string", length=45, nullable=true) */ protected $web;
/** * Method to set the value of field comid * * @param integer $comid * @return $this */ public function setComid($comid) { $this->comid = $comid;
return $this; }
/** * Method to set the value of field name * * @param string $name * @return $this */ public function setName($name) { $this->name = $name;
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; }
/** * Method to set the value of field logo * * @param string $logo * @return $this */ public function setLogo($logo) { $this->logo = $logo;
return $this; }
/** * Method to set the value of field web * * @param string $web * @return $this */ public function setWeb($web) { $this->web = $web;
return $this; }
/** * Returns the value of field comid * * @return integer */ public function getComid() { return $this->comid; }
/** * Returns the value of field name * * @return string */ public function getName() { return $this->name; }
/** * Returns the value of field date_creation * * @return string */ public function getDateCreation() { return $this->date_creation; }
/** * Returns the value of field logo * * @return string */ public function getLogo() { return $this->logo; }
/** * Returns the value of field web * * @return string */ public function getWeb() { return $this->web; }
/** * Initialize method for model. */ public function initialize() { $this->hasMany('comid', 'AtInmueble', 'comid', ['alias' => 'AtInmueble']); }
/** * Returns table name mapped in the model. * * @return string */ public function getSource() { return 'at_company'; }
/** * Allows to query a set of records that match the specified conditions * * @param mixed $parameters * @return AtCompany[] */ 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 AtCompany */ public static function findFirst($parameters = null) { return parent::findFirst($parameters); }
}
|