Exemplo n.º 1
0
 public function assemble()
 {
     $collection = parent::assemble();
     if ($this->hasCriteria('Albums')) {
         $albums = $this->getCriteria('Albums')->filterByArtistIds($collection->getAllValuesForProperty('artistId'))->assemble();
         $collection->bindCollection($albums, ['artistId' => 'artistId'], 'Albums');
     }
     return $collection;
 }
Exemplo n.º 2
0
 public function assemble()
 {
     $collection = parent::assemble();
     return $collection;
 }