Initial import
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace app\models;
|
||||
|
||||
/**
|
||||
* Class CmsRr
|
||||
* @package app\models
|
||||
* @property \app\models\CmsRoles $role
|
||||
* @property \app\models\CmsRights $right
|
||||
* @property int $role_id
|
||||
* @property int $right_id
|
||||
*/
|
||||
class CmsRr extends _Base
|
||||
{
|
||||
public function getRole() {
|
||||
return $this->hasOne(CmsRoles::class, ['id' => 'role_id']);
|
||||
}
|
||||
|
||||
public function getRight() {
|
||||
return $this->hasOne(CmsRights::class, ['id' => 'right_id']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user