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