21 lines
479 B
PHP
21 lines
479 B
PHP
<?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']);
|
|
}
|
|
} |