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

__construct() public method

Creates a new relation manager for the defined parent model
public __construct ( DataModel $parentModel )
$parentModel FOF30\Model\DataModel The model we are attached to
    public function __construct(DataModel $parentModel)
    {
        // Set the parent model
        $this->parentModel = $parentModel;
        // Make sure the relation types are initialised
        static::getRelationTypes();
        // @todo Maybe set up a few relations automatically?
    }