hot fix
This commit is contained in:
@ -56,6 +56,9 @@ class ManagerEmployee extends \yii\db\ActiveRecord
|
||||
'id',
|
||||
'manager_id',
|
||||
'employee_id',
|
||||
'user_id' => function(){
|
||||
return $this->employee_id;
|
||||
},
|
||||
'employee' => function () {
|
||||
return [
|
||||
"fio" => $this->employee->userCard->fio ?? $this->employee->username,
|
||||
@ -73,6 +76,11 @@ class ManagerEmployee extends \yii\db\ActiveRecord
|
||||
return $this->hasOne(User::class, ['id' => 'employee_id']);
|
||||
}
|
||||
|
||||
public function getUser()
|
||||
{
|
||||
return $this->hasOne(User::class, ['id' => 'employee_id']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ActiveQuery
|
||||
*/
|
||||
|
Reference in New Issue
Block a user