protected function mergeUserProperties(\core_kernel_classes_Resource $user, $properties)
    {
        foreach ($properties as $property => $value) {
            $user->removePropertyValues($this->getProperty($property));
            $user->editPropertyValues($this->getProperty($property), $value);
        }

        return $user;
    }
protected function mergeUserProperties(\core_kernel_classes_Resource $user, $properties)
    {
        foreach ($properties as $property => $value) {
            $user->removePropertyValues($this->getProperty($property));
            $user->editPropertyValues($this->getProperty($property), $value);
        }

        return $user;
    }
protected function mergeUserProperties ( \ core_kernel_classes_Resource $ user , $ properties ) { foreach ( $ properties as $ property => $ value ) { $ user -> removePropertyValues ( $ this -> getProperty ( $ property ) ) ; $ user -> editPropertyValues ( $ this -> getProperty ( $ property ) , $ value ) ; } return $ user ; }
Flush rdf properties to a resource
- delete old
- insert new

@param \core_kernel_classes_Resource $user
@param $properties
@return \core_kernel_classes_Resource
Flush rdf properties to a resource - delete old - insert new