Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMedia()
 {
     return $this->hasMany(Media::className(), ['user' => 'ID']);
 }
Esempio n. 2
0
 /**
  * @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']);
 }