FOF30\Model\DataModel\RelationManager::rebase PHP Method

rebase() public method

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);
            }
        }
    }