diff --git a/app/repositories/orient_db/attribute_repository.rb b/app/repositories/orient_db/attribute_repository.rb index 683d7eb2ca63e97effafdd051d206da54df9af10..b0f5de18c9c01dcb27745b0bfdce86ba4a0d72ca 100644 --- a/app/repositories/orient_db/attribute_repository.rb +++ b/app/repositories/orient_db/attribute_repository.rb @@ -8,6 +8,10 @@ module OrientDb build_object(result.first) end + def find_all_by_learning_object(learning_object) + build_objects get_edges_end("HasAttr", "out", learning_object.id) + end + def build_object(args={}) attribute = nil unless args.nil?