Gets the related items of a relation
public getData ( string $name, callable $callback = null, |
||
$name | string | The name of the relation to return data for |
$callback | callable | A callback to customise the returned data |
$dataCollection | Used when fetching the data of an eager loaded relation | |
return |
/** * @group RelationManager * @group RelationManagerGetData * @covers FOF30\Model\DataModel\RelationManager::getData */ public function testGetDataException() { $this->setExpectedException('\\FOF30\\Model\\DataModel\\Relation\\Exception\\RelationNotFound'); $model = $this->buildModel(); $relation = new RelationManager($model); $relation->getData('test'); }