changes in manager and manager_employee, replaced user_id to card_id
This commit is contained in:
1 parent
ce25dc44ea
commit
ac4e5d62ec
22 files changed
+2570
-71
No files matched your search
@@ -220,6 +220,11 @@ class UserCard extends \yii\db\ActiveRecord
|
||||
return ArrayHelper::map(self::find()->all(), 'id', 'fio');
|
||||
}
|
||||
|
||||
public function getManager()
|
||||
{
|
||||
return $this->hasOne(Manager::class, ['user_card_id' => 'id']);
|
||||
}
|
||||
|
||||
public static function generateUserForUserCard($card_id = null)
|
||||
{
|
||||
$userCardQuery = self::find();
|
||||
|
||||
Reference in new issue
Block a user