コード例 #1
0
ファイル: EntitiesCollection.php プロジェクト: Hlavos/obo
 /**
  * @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]);
     }
 }
コード例 #2
0
ファイル: EntitiesCollection.php プロジェクト: Hlavos/obo
 /**
  * @return void
  */
 public function clear()
 {
     parent::clear();
     $this->entitiesAreLoaded = false;
 }
コード例 #3
0
ファイル: Event.php プロジェクト: Hlavos/obo
 /**
  * @param array $specification
  */
 public function __construct(array $specification)
 {
     parent::__construct($specification);
     $this->actionArguments["event"] = $this;
 }