예제 #1
0
파일: Analysis.php 프로젝트: aiyeyun/grab
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCodi()
 {
     return $this->hasOne(Code::className(), ['id' => 'codi_id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCodes()
 {
     return $this->hasMany(Code::className(), ['member_id' => 'id']);
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCodes()
 {
     return $this->hasMany(Code::className(), ['created_by' => 'id']);
 }