Exemplo n.º 1
0
 /**
  * @return array
  */
 protected function &variables()
 {
     if (!$this->entitiesAreLoaded) {
         $this->entitiesAreLoaded = true;
         $this->loadEntities();
     }
     return parent::variables();
 }
Exemplo n.º 2
0
 /**
  * @return void
  */
 public function clear()
 {
     foreach ($entities =& parent::variables() as $key => $entity) {
         unset($entities[$key]);
         \obo\Services::serviceWithName(\obo\obo::EVENT_MANAGER)->notifyEventForEntity($this->relationShip->ownerPropertyName . "Disconnected", $this->owner, ["collection" => $this, "owner" => $this->owner, "columnName" => $this->relationShip->ownerPropertyName, "disconnectedEntity" => $entity]);
     }
 }