Exemple #1
0
 public function getUser()
 {
     return $this->hasMany(User::className(), ['user_type' => 'id']);
 }
Exemple #2
0
 public function getUser()
 {
     return @$this->hasOne(User::className(), ['id' => 'user_id']);
 }