public function getPhotos() { return $this->hasMany(GalleryPhoto::className(), ['gallery_id' => 'id']); }