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