/** * @return \yii\db\ActiveQuery */ public function getVideoGallery() { return $this->hasOne(\dmstr\modules\news\models\VideoGallery::className(), ['id' => 'video_gallery_id']); }
/** * @return \yii\db\ActiveQuery */ public function getVideoGalleries() { return $this->hasMany(\dmstr\modules\news\models\VideoGallery::className(), ['news_id' => 'id']); }