/** * @return \yii\db\ActiveQuery */ public function getRoleAction() { return $this->hasOne(RoleAction::className(), ['id' => 'role_action_id']); }
/** * @return \yii\db\ActiveQuery */ public function getRoleActions() { return $this->hasMany(RoleAction::className(), ['module_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getRoleActions() { return $this->hasMany(RoleAction::className(), ['controller_id' => 'id']); }