/** * @return Performer */ public function getPerformer() { // Original perf data from persistent layer $performer = new Performer($this->getPerformerDo()); $studioId = $performer->getDo()->getStudioId(); $studioProvider = new StudioProvider(); $studio = $studioProvider->getStudio(); // Apply studioid from the persistent layer $studio->getDo()->setId($studioId); $performer->setStudio($studio); return $performer; }
public function testGetStudio() { $this->assertEquals($this->performer->getDo()->getStudioId(), $this->performer->getStudio()->getId()); }