コード例 #1
0
ファイル: Evento.php プロジェクト: retrofox/PCC
 public function save(PropelPDO $con = null)
 {
     $producto = $this->getProducto();
     if ($this->getOperacion()) {
         $producto->incrementarStock($this->getCantidad());
     } else {
         $producto->decrementarStock($this->getCantidad());
     }
     parent::save($con);
 }
コード例 #2
0
ファイル: Evento.php プロジェクト: Neozeratul/Intermodels
 public function delete()
 {
     $q = Doctrine_Query::create()->delete('EventoPhoto')->addWhere('evento_id = ?', $this->id);
     $deleted = $q->execute();
     parent::delete();
 }
コード例 #3
0
ファイル: BaseEvento.php プロジェクト: mediasadc/alba
 public function getPeer()
 {
     if (self::$peer === null) {
         self::$peer = new EventoPeer();
     }
     return self::$peer;
 }