public function createQuery()
 {
     $query = DiaporamaImageQuery::create();
     !is_null($this->diaporama_id) and $query->filterByDiaporamaId($this->diaporama_id);
     return $query;
 }
示例#2
0
 /**
  * Retrieving diaporama's images
  * @return array Diaporama's images.
  */
 public function getImages()
 {
     return DiaporamaImageQuery::create()->findByDiaporamaId($this->getId());
 }