I have constructed a sample program consisting of two mapped classes (using 
sqlalchemy.ext.declarative) that have a relationship/ backref between them. 
At runtime the program does the following:
1) Print whether the parent class has an attribute for its relationship to 
the child (declared as the backref)
2) Construct a child object
3) Repeat step 1

The result (with SQLA 0.7.9) is that it prints 'False' during step 1 and 
then 'True' during step 3. I would expect True to be printed both times.

Here is the full source of the program:
https://gist.github.com/4070161

Why does the property not exist when the first print statement executes?

Thanks for any guidance.

-- 
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/-/SRZzsLt7qb0J.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to