예제 #1
0
 public function updateObject()
 {
     if (!$this->isValid()) {
         throw $this->getErrorSchema();
     }
     $data = LsRequestFilter::emptyStringsToNull($this->getValues());
     $this->object->fromArray($data);
     unset($data['id']);
     foreach ($this->object->getExtensionObjects() as $object) {
         $object->fromArray($data);
     }
     return $this->object;
 }