public function updateObject($values = null)
 {
     $object = parent::updateObject($values);
     if ($parent_id = $this->getValue('parent_id')) {
         $parent = $object->getTable()->find($parent_id);
         $object->setParent($parent);
     }
     return $object;
 }
 public function updateObject($values = null)
 {
     $object = parent::updateObject($values);
     $object->setParent($this->getOption('parent'));
     return $object;
 }