public function mergeValues($object) {
        $values = $object->__toArray();
        foreach ($values as $k => $v) {
            $this->values[$k] = $v;
        }
        if ($object->id) $this->id = $object->id;

        $this->dirty_values = [];
    }