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,7 +2,6 @@
namespace common\models;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
@ -104,4 +103,9 @@ class Company extends \yii\db\ActiveRecord
{
return $this->hasOne(Project::class, ['company_id' => 'id']);
}
public static function getTitle($id)
{
return self::findOne($id)->name;
}
}