public function getContributors()
 {
     $this->__load();
     return parent::getContributors();
 }
Beispiel #2
0
 private function hasNotSameContributors(\Sb\Db\Model\Book $book)
 {
     $hasNotSameContributors = false;
     foreach ($book->getContributors() as $contributor) {
         $currentlyViewedBookContributorsIds = array_map(array(&$this, "getId"), $this->currentViewedBook->getContributors()->toArray());
         if (!in_array($contributor->getId(), $currentlyViewedBookContributorsIds)) {
             $hasNotSameContributors = true;
         }
     }
     return $hasNotSameContributors;
 }