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; }
public function setNameMiddle($str) { parent::_set('name_middle', LsRequestFilter::emptyStringToNull(preg_replace('/[.]/', '', $str))); }