refactor: Companies -> Company

This commit is contained in:
b1ek 2024-11-28 02:34:02 +10:00
parent d834d7d73e
commit 04c5b7b9f1
Signed by: blek
GPG Key ID: A622C22C9BC616B2
4 changed files with 3 additions and 4 deletions

View File

@ -24,7 +24,7 @@ class Blog extends \yii\db\ActiveRecord
public function getCompany()
{
return $this->hasOne(Companies::class, [ 'blog_id' => 'id' ]);
return $this->hasOne(Company::class, [ 'blog_id' => 'id' ]);
}
/**

View File

@ -2,7 +2,7 @@
namespace app\models;
class Companies extends \yii\db\ActiveRecord
class Company extends \yii\db\ActiveRecord
{
public $id;
public $title;

View File

@ -25,7 +25,7 @@ class Subscriptions extends \yii\db\ActiveRecord
public function getCompany()
{
return $this->hasOne(Companies::class, [ 'id' => 'company_id' ]);
return $this->hasOne(Company::class, [ 'id' => 'company_id' ]);
}
/**

View File

@ -62,7 +62,6 @@ class User extends \yii\db\ActiveRecord implements \yii\web\IdentityInterface
return "user";
}
/**
* {@inheritdoc}
*/