/** * @return \yii\db\ActiveQuery */ public function getCodi() { return $this->hasOne(Code::className(), ['id' => 'codi_id']); }
/** * @return \yii\db\ActiveQuery */ public function getCodes() { return $this->hasMany(Code::className(), ['member_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getCodes() { return $this->hasMany(Code::className(), ['created_by' => 'id']); }