public function runAggregateRootCallbacks($child)
    {
        $objectHashId = $this->getObjectHashId($child);

        if (!isset($this->aggregateRootChildren[$objectHashId])) {
            return;
        }

        foreach ($this->aggregateRootChildren[$objectHashId] as $aggregateRootData) {
            $aggregateRoot = $aggregateRootData["aggregateRoot"];
            $aggregateRootData["function"]($aggregateRoot, $child);
        }
    }
public function runAggregateRootCallbacks($child)
    {
        $objectHashId = $this->getObjectHashId($child);

        if (!isset($this->aggregateRootChildren[$objectHashId])) {
            return;
        }

        foreach ($this->aggregateRootChildren[$objectHashId] as $aggregateRootData) {
            $aggregateRoot = $aggregateRootData["aggregateRoot"];
            $aggregateRootData["function"]($aggregateRoot, $child);
        }
    }
public function runAggregateRootCallbacks ( $ child ) { $ objectHashId = $ this -> getObjectHashId ( $ child ) ; if ( ! isset ( $ this -> aggregateRootChildren [ $ objectHashId ] ) ) { return ; } foreach ( $ this -> aggregateRootChildren [ $ objectHashId ] as $ aggregateRootData ) { $ aggregateRoot = $ aggregateRootData [ "aggregateRoot" ] ; $ aggregateRootData [ "function" ] ( $ aggregateRoot , $ child ) ; } }
Runs any aggregate root child functions registered for the entity

@param   object $child The child whose aggregate root functions we're running

@return  void
Runs any aggregate root child functions registered for the entity