Exemple #1
0
 /**
  * @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']);
 }
Exemple #3
0
 public function getAvatar()
 {
     return $this->hasOne(File::className(), ['nid' => 'id'])->where('model="Profile" AND field="avatar"');
 }
Exemple #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getFiles()
 {
     return $this->hasMany(File::className(), ['id' => 'id_file'])->via('studentResultFiles');
 }
Exemple #5
0
 /**
  * @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');
 }
Exemple #7
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAvatar()
 {
     return $this->hasOne(File::className(), ['nid' => 'id']);
 }
Exemple #8
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getFiles()
 {
     return $this->hasMany(File::className(), ['evaluate_id' => 'evaluate_id']);
 }
Exemple #9
0
 /**
  * @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']);
 }