Viewing file: CdPrice.php (4.85 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php namespace Modules\Models; class CdPrice extends \Phalcon\Mvc\Model {
/** * * @var integer * @Primary * @Identity * @Column(column="pricid", type="integer", length=11, nullable=false) */ protected $pricid;
/** * * @var string * @Column(column="rent", type="string", length=50, nullable=true) */ protected $rent;
/** * * @var string * @Column(column="vent", type="string", length=50, nullable=true) */ protected $vent;
/** * * @var string * @Column(column="meter_price", type="string", length=50, nullable=true) */ protected $meter_price;
/** * * @var string * @Column(column="retention", type="string", length=50, nullable=true) */ protected $retention;
/** * * @var string * @Column(column="maintenance_price", type="string", length=45, nullable=true) */ protected $maintenance_price;
/** * * @var integer * @Column(column="imid", type="integer", length=11, nullable=false) */ protected $imid;
/** * Method to set the value of field pricid * * @param integer $pricid * @return $this */ public function setPricid($pricid) { $this->pricid = $pricid;
return $this; }
/** * Method to set the value of field rent * * @param string $rent * @return $this */ public function setRent($rent) { $this->rent = $rent;
return $this; }
/** * Method to set the value of field vent * * @param string $vent * @return $this */ public function setVent($vent) { $this->vent = $vent;
return $this; }
/** * Method to set the value of field meter_price * * @param string $meter_price * @return $this */ public function setMeterPrice($meter_price) { $this->meter_price = $meter_price;
return $this; }
/** * Method to set the value of field meter_price * * @param string $meter_price * @return $this */ public function setRetention($retention) { $this->retention = $retention;
return $this; }
/** * Method to set the value of field maintenance_price * * @param string $maintenance_price * @return $this */ public function setMaintenancePrice($maintenance_price) { $this->maintenance_price = $maintenance_price;
return $this; }
/** * Method to set the value of field imid * * @param integer $imid * @return $this */ public function setImid($imid) { $this->imid = $imid;
return $this; }
/** * Returns the value of field pricid * * @return integer */ public function getPricid() { return $this->pricid; }
/** * Returns the value of field rent * * @return string */ public function getRent() { return $this->rent; }
/** * Returns the value of field vent * * @return string */ public function getVent() { return $this->vent; }
/** * Returns the value of field meter_price * * @return string */ public function getMeterPrice() { return $this->meter_price; }
/** * Returns the value of field meter_price * * @return string */ public function getRetention() { return $this->retention; }
/** * Returns the value of field maintenance_price * * @return string */ public function getMaintenancePrice() { return $this->maintenance_price; }
/** * Returns the value of field imid * * @return integer */ public function getImid() { return $this->imid; }
/** * Initialize method for model. */ public function initialize() {
$this->setSource("at_price"); $this->belongsTo('imid', '\CdInmueble', 'imid', ['alias' => 'CdInmueble']); }
/** * Returns table name mapped in the model. * * @return string */ public function getSource() { return 'at_price'; }
/** * Allows to query a set of records that match the specified conditions * * @param mixed $parameters * @return CdPrice[]|CdPrice|\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 CdPrice|\Phalcon\Mvc\Model\ResultInterface */ public static function findFirst($parameters = null) { return parent::findFirst($parameters); }
}
|