portal.mkgtu.ru/backend/models/ManagerNotificationSetting.php

22 lines
582 B
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?php
namespace backend\models;
class ManagerNotificationSetting extends \yii\db\ActiveRecord
{
public static function tableName()
{
return '{{%manager_notification_settings}}';
}
public function rules()
{
return [
[['manager_id', 'name'], 'required'],
[['manager_id'], 'integer'],
[['name'], 'string'],
[['value'], 'safe'],
[['manager_id'], 'exist', 'skipOnError' => true, 'targetClass' => \common\models\User::class, 'targetAttribute' => ['manager_id' => 'id']],
];
}
}