Finally found a link that wasn't 
broken: 
http://docs.sqlalchemy.org/en/rel_0_5/mappers.html#rows-that-point-to-themselves-mutually-dependent-rows

But I tried using post_update=True as well, but it gave the same error:

class Project(Entity):
id = Field(String(100), primary_key=True)
workers     = OneToMany('User') 
client = ManyToOne('User', post_update=True, inverse='owned_projects')
creator = ManyToOne('User', post_update=True, inverse='created_projects')
class User(Entity):
username            = Field(String(80),  primary_key=True)
assigned_project  = ManyToOne('Project', post_update=True, use_alter=True, 
inverse='workers')
owned_projects    = OneToMany('Project', use_alter=True, inverse='client')
created_projects   = OneToMany('Project', use_alter=True, inverse='creator')

Am I missing something?

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/xDVBO-iBoRIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to