in api added methods: document created and get profile with reports permission

This commit is contained in:
iIronside committed 2022-01-14 10:09:02 +03:00
1 parent 920aa2e751
commit b123d250e1
10 files changed
+3921 -20

No files matched your search

+5
View File
@@ -4,6 +4,7 @@ namespace common\models;
use Yii;
use yii\db\ActiveQuery;
use yii\db\StaleObjectException;
/**
* This is the model class for table "manager".
@@ -48,6 +49,10 @@ class Manager extends \yii\db\ActiveRecord
];
}
/**
* @throws StaleObjectException
* @throws \Throwable
*/
public function beforeDelete()
{
foreach ($this->managerEmployees as $employee){