public function updateObject($values = null)
 {
     $object = parent::updateObject($values);
     if (isset($this->ref_relation) && isset($this->ref_record_id)) {
         $object->setReferencedRelation($this->ref_relation);
         $object->setRecordId($this->ref_record_id);
     }
 }