MetaModels\Filter\Setting\Collection::getMetaModel PHP Method

getMetaModel() public method

Retrieve the MetaModel this filter belongs to.
public getMetaModel ( ) : MetaModels\IMetaModel
return MetaModels\IMetaModel
    public function getMetaModel()
    {
        if ($this->metaModel) {
            return $this->metaModel;
        }
        throw new \RuntimeException(sprintf('Error: Filter setting %d not attached to a MetaModel', $this->arrData['id']));
    }