/** * @return \yii\db\ActiveQuery */ public function getMedia() { return $this->hasMany(Media::className(), ['user' => 'ID']); }
/** * @return \yii\db\ActiveQuery */ public function getMedia() { return $this->hasMany(Media::className(), ['media_type' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getMedia() { return $this->hasOne(Media::className(), ['ID' => 'media']); }