custom fields have been added to the documents
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user