public function getPhotosArray() { $photos = GalleryPhoto::find()->where(['gallery_id' => $this->id])->all(); return $photos; }