Viewing file: AtCompany.php (3.73 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php namespace Modules\Models; class AtCompany extends \Phalcon\Mvc\Model {
/** * * @var integer */ protected $comid;
/** * * @var string */ protected $name;
/** * * @var string */ protected $date_creation;
/** * * @var string */ protected $logo;
/** * * @var string */ protected $web;
/** * * @var string */ protected $portada;
/** * 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; }
/** * Method to set the value of field portada * * @param string $portada * @return $this */ public function setPortada($portada) { $this->portada = $portada;
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; }
/** * Returns the value of field portada * * @return string */ public function getPortada() { return $this->portada; }
/** * Initialize method for model. */ public function initialize() {
$this->setSource("at_company"); $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[]|AtCompany|\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 AtCompany|\Phalcon\Mvc\Model\ResultInterface */ public static function findFirst($parameters = null) { return parent::findFirst($parameters); }
}
|