/** * @return \yii\db\ActiveQuery */ public function getIdFile() { return $this->hasOne(File::className(), ['id' => 'id_file']); }
/** * @return \yii\db\ActiveQuery */ public function getFiles() { return $this->hasMany(File::className(), ['project_id' => 'project_id']); }
public function getAvatar() { return $this->hasOne(File::className(), ['nid' => 'id'])->where('model="Profile" AND field="avatar"'); }
/** * @return \yii\db\ActiveQuery */ public function getFiles() { return $this->hasMany(File::className(), ['id' => 'id_file'])->via('studentResultFiles'); }
/** * @return \yii\db\ActiveQuery */ public function getFiles() { return $this->hasMany(File::className(), ['member_id' => 'member_id']); }
/** * @return \yii\db\ActiveQuery */ public function getFiles() { return $this->hasMany(File::className(), ['id' => 'id_file'])->via('disciplineFiles'); }
/** * @return \yii\db\ActiveQuery */ public function getAvatar() { return $this->hasOne(File::className(), ['nid' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getFiles() { return $this->hasMany(File::className(), ['evaluate_id' => 'evaluate_id']); }
/** * @return \yii\db\ActiveQuery */ public function getFiles() { return $this->hasMany(File::className(), ['id' => 'file_id'])->viaTable('page_file', ['page_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getFiles0() { return $this->hasMany(File::className(), ['updater_id' => 'id']); }