custom fields have been added to the documents

This commit is contained in:
iIronside committed 2022-12-09 16:28:22 +03:00
1 parent aad1b14473
commit 5b455b59f9
25 files changed
+904 -106

No files matched your search

+5 -1
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;
}
}