update api for manager
This commit is contained in:
1 parent
dccf3c012e
commit
18b7fb0765
19 files changed
+5168
-50
No files matched your search
@@ -225,6 +225,11 @@ class UserCard extends \yii\db\ActiveRecord
|
||||
return $this->hasOne(Manager::class, ['user_card_id' => 'id']);
|
||||
}
|
||||
|
||||
public function getManagerEmployee()
|
||||
{
|
||||
return $this->hasMany(ManagerEmployee::class, ['user_card_id' => 'id']);
|
||||
}
|
||||
|
||||
public static function generateUserForUserCard($card_id = null)
|
||||
{
|
||||
$userCardQuery = self::find();
|
||||
|
||||
Reference in new issue
Block a user