Exemplo n.º 1
0
 /**
  * Renvoie les Productions liés aux Batiments de cette collection
  * @return ProductionCollection
  */
 public function getProductions()
 {
     if (is_null($this->cacheProductions)) {
         $this->cacheProductions = ProductionBusiness::getFromBatiments($this);
         $this->cacheProductions->store();
     }
     return $this->cacheProductions;
 }
Exemplo n.º 2
0
 /**
  * @return void
  */
 public function delete()
 {
     ProductionBusiness::delete($this);
 }
Exemplo n.º 3
0
 /**
  * Renvoie les Productions liés à l'objet
  * @return ProductionCollection
  */
 public function getProductions()
 {
     if (is_null($this->cacheProductions)) {
         $this->cacheProductions = ProductionBusiness::getByInfrastructure($this);
         $this->cacheProductions->store();
     }
     return $this->cacheProductions;
 }