Skip to content
Snippets Groups Projects
Commit 29c2e5e6 authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

Add Update_Property to LearningObjectRepository

parent 6345d51d
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,12 @@ module OrientDb
connection.command sprintf("DELETE VERTEX #{odb_class} where @rid = '%s'", learning_object.id)
end
def update_property(learning_object,property,value)
if accepted_properties.include? property
connection.command "UPDATE LearningObject SET #{property}='#{value}' WHERE @rid = #{learning_object.id}"
end
end
##
# To create "index:learningobject_search" on OrientDB, use the following command:
# CREATE INDEX learningobject_search
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment