public function init()
 {
     if (!is_string($this->queryClass)) {
         $this->queryClass = BaseMongoMessageQuery::className();
     }
     if ($this->skipInit) {
         return;
     }
     $this->initMessageEvents();
     parent::init();
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return array_merge(parent::rules(), [[['client_id', 'allowed_remaining'], 'required'], [['client_id'], 'string', 'max' => 80], [['allowed_remaining'], 'number', 'integerOnly' => true, 'min' => -1]]);
 }
 public function init()
 {
     $this->on(static::EVENT_AFTER_DELETE, [$this, 'onDeleteNotificationRead']);
     parent::init();
 }
 public function init()
 {
     $this->attachUserClass();
     parent::init();
 }