refactor: Companies -> Company
This commit is contained in:
parent
d834d7d73e
commit
04c5b7b9f1
|
@ -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' ]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace app\models;
|
||||
|
||||
class Companies extends \yii\db\ActiveRecord
|
||||
class Company extends \yii\db\ActiveRecord
|
||||
{
|
||||
public $id;
|
||||
public $title;
|
|
@ -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' ]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -62,7 +62,6 @@ class User extends \yii\db\ActiveRecord implements \yii\web\IdentityInterface
|
|||
return "user";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue