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 = [];
    }
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 = [];
    }
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 = [ ] ; }
Merges values from another PatrolObject

@param PatrolObject
Merges values from another PatrolObject