Пример #1
0
 protected function insert()
 {
     if (is_null($this->isAnyRecord->get())) {
         $this->isAnyRecord->set(1);
     }
     if (!$this->position->get()) {
         $this->setLastPosition();
     }
     return parent::insert();
 }