コード例 #1
0
 /**
  * @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;
 }
コード例 #2
0
 public function testGetStudio()
 {
     $this->assertEquals($this->performer->getDo()->getStudioId(), $this->performer->getStudio()->getId());
 }