getRelation() public method

Gets the related items of a relation
public getRelation ( string $name ) : Relation
$name string The name of the relation to return data for
return Relation
Esempio n. 1
0
 /**
  * @group       RelationManager
  * @group       RelationManagerGetRelation
  * @covers      FOF30\Model\DataModel\RelationManager::getRelation
  */
 public function testGetRelationException()
 {
     $this->setExpectedException('\\FOF30\\Model\\DataModel\\Relation\\Exception\\RelationNotFound');
     $model = $this->buildModel();
     $relation = new RelationManager($model);
     $relation->getRelation('test');
 }