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

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

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){