예제 #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;
 }
예제 #2
0
 /**
  * @return void
  */
 public function delete()
 {
     ProductionBusiness::delete($this);
 }
예제 #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;
 }