public function testRelationshipEntitesAreRetrieved()
{
/** @var Person $tom */
$tom = $this->getPerson('Tom Hanks');
foreach ($tom->getRoles() as $role) {
$this->assertInstanceOf(Role::class, $role);
$this->assertEquals($tom->id, $role->getActor()->getId());
$this->assertInstanceOf(Movie::class, $role->getMovie());
$this->assertInternalType('array', $role->getRoles());
}
}