/** @inheritdoc */
 public function beforeValidate()
 {
     if ($this->isNewRecord) {
         //            $this->RoomID = $session->RoomID;
     }
     return parent::beforeValidate();
 }
Пример #2
0
 public function beforeValidate()
 {
     if (parent::beforeValidate()) {
         if ($this->_data !== null) {
             $this->Settings = $this->_data->toString();
         }
         return true;
     } else {
         return false;
     }
 }