custom fields have been added to the documents

This commit is contained in:
iIronside
2022-12-09 16:18:57 +03:00
parent aad1b14473
commit 5b455b59f9
25 changed files with 904 additions and 106 deletions

View File

@ -2,9 +2,6 @@
namespace common\models;
use Yii;
use yii\helpers\ArrayHelper;
/**
* This is the model class for table "company_manager".
*
@ -71,4 +68,9 @@ class CompanyManager extends \yii\db\ActiveRecord
{
return self::find()->where(['company_id' => $company_id])->all();
}
public static function getName($id)
{
return self::findOne($id)->userCard->fio;
}
}