orientechnologies / pyorient

OrientDB driver for Python that uses the binary protocol.
Apache License 2.0
119 stars 38 forks source link

Saving vertices and nodes fails with read-only properties #25

Closed FalFire closed 7 years ago

FalFire commented 7 years ago

When using the OGM, calling instance.save() on an instance of a vertex or relationship class fails when some of the properties are declared as read-only in OrientDB, even when they are declared read-only on the model fields as well. This appears to be due to save_element of class ogm.graph.Graph calling props_to_db which happily returns all properties.

TropicalPenguin commented 7 years ago

Resolved. Thanks for the diagnosis!

Once synced with mogui/pyorient, this issue can be closed too.

Ostico commented 7 years ago

Tnx @TropicalPenguin . Closing.