Viewing file: AtTenant.php (6.92 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php namespace Modules\Models; class AtTenant extends \Phalcon\Mvc\Model {
/** * * @var integer * @Primary * @Identity * @Column(column="arcid", type="integer", length=11, nullable=false) */ protected $tenid;
/** * * @var string * @Column(column="name", type="string", length=150, nullable=true) */ protected $tradename;
/** * * @var string * @Column(column="date_creation", type="string", nullable=true) */ protected $business_name;
/** * * @var string * @Column(column="date_creation", type="string", nullable=true) */ protected $direction_fiscal;
/** * * @var string * @Column(column="date_creation", type="string", nullable=true) */ protected $rfc;
/** * * @var string * @Column(column="date_creation", type="string", nullable=true) */ protected $type;
/** * * @var string * @Column(column="date_creation", type="string", nullable=true) */ protected $person;
/** * * @var string * @Column(column="date_creation", type="string", nullable=true) */ protected $notes;
/** * * @var string * @Column(column="date_creation", type="string", nullable=true) */ protected $imid;
/** * * @var string * @Column(column="date_creation", type="string", nullable=true) */ protected $mpid;
/** * * @var string * @Column(column="date_creation", type="string", nullable=true) */ protected $crid;
/** * Method to set the value of field arcid * * @param integer $arcid * @return $this */ public function setTenid($tenid) { $this->tenid = $tenid;
return $this; }
/** * Method to set the value of field name * * @param string $name * @return $this */ public function setTradename($tradename) { $this->tradename = $tradename;
return $this; }
/** * Method to set the value of field date_creation * * @param string $date_creation * @return $this */ public function setBusinessName($business_name) { $this->business_name = $business_name;
return $this; }
/** * Method to set the value of field date_creation * * @param string $date_creation * @return $this */ public function setDirectionFiscal($direction_fiscal) { $this->direction_fiscal = $direction_fiscal;
return $this; }
/** * Method to set the value of field date_creation * * @param string $date_creation * @return $this */ public function setRfc($rfc) { $this->rfc = $rfc;
return $this; }
/** * Method to set the value of field date_creation * * @param string $date_creation * @return $this */ public function setType($type) { $this->type = $type;
return $this; }
/** * Method to set the value of field date_creation * * @param string $date_creation * @return $this */ public function setPerson($person) { $this->person = $person;
return $this; }
/** * Method to set the value of field date_creation * * @param string $date_creation * @return $this */ public function setNotes($notes) { $this->notes = $notes;
return $this; }
/** * Method to set the value of field date_creation * * @param string $date_creation * @return $this */ public function setImid($imid) { $this->imid = $imid;
return $this; }
/** * Method to set the value of field date_creation * * @param string $date_creation * @return $this */ public function setMpid($mpid) { $this->mpid = $mpid;
return $this; }
/** * Method to set the value of field date_creation * * @param string $date_creation * @return $this */ public function setCrid($crid) { $this->crid = $crid;
return $this; }
/** * Returns the value of field arcid * * @return integer */ public function getTenid() { return $this->tenid; }
/** * Returns the value of field name * * @return string */ public function getTradename() { return $this->tradename; }
/** * Returns the value of field name * * @return string */ public function getBusinessName() { return $this->business_name; }
/** * Returns the value of field name * * @return string */ public function getDirectionFiscal() { return $this->direction_fiscal; }
/** * Returns the value of field name * * @return string */ public function getRfc() { return $this->rfc; }
/** * Returns the value of field name * * @return string */ public function getType() { return $this->type; }
/** * Returns the value of field name * * @return string */ public function getPerson() { return $this->person; }
/** * Returns the value of field name * * @return string */ public function getNotes() { return $this->notes; }
/** * Returns the value of field name * * @return string */ public function getImid() { return $this->imid; }
/** * Returns the value of field name * * @return string */ public function getMpid() { return $this->mpid; }
/** * Returns the value of field name * * @return string */ public function getCrid() { return $this->crid; }
/** * Initialize method for model. */ public function initialize() {
$this->setSource("at_tenant"); $this->belongsTo('imid', '\CdInmueble', 'imid', ['alias' => 'CdInmueble']); }
/** * Returns table name mapped in the model. * * @return string */ public function getSource() { return 'at_tenant'; }
/** * Allows to query a set of records that match the specified conditions * * @param mixed $parameters * @return CdArchitecturalPlans[]|CdArchitecturalPlans|\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 CdArchitecturalPlans|\Phalcon\Mvc\Model\ResultInterface */ public static function findFirst($parameters = null) { return parent::findFirst($parameters); }
}
|