FOF30\Model\DataModel\RelationManager::rebase PHP Метод

rebase() публичный Метод

Rebase a relation manager
public rebase ( DataModel $parentModel )
$parentModel FOF30\Model\DataModel
    public function rebase(DataModel $parentModel)
    {
        $this->parentModel = $parentModel;
        if (count($this->relations)) {
            foreach ($this->relations as $name => $relation) {
                /** @var Relation $relation */
                $relation->rebase($parentModel);
            }
        }
    }