FOF30\Model\DataModel\Relation::filterForeignModel PHP Method

filterForeignModel() abstract protected method

Applies the relation filters to the foreign model when getData is called
abstract protected filterForeignModel ( DataModel $foreignModel, Collection $dataCollection = null ) : boolean
$foreignModel FOF30\Model\DataModel The foreign model you're operating on
$dataCollection Collection If it's an eager loaded relation, the collection of loaded parent records
return boolean Return false to force an empty data collection
    protected abstract function filterForeignModel(DataModel $foreignModel, Collection $dataCollection = null);