On Oct 15, 2010, at 9:36 AM, Kent wrote:

> Suppose I have a collection of new objects in a one to many
> relationship list.  (A plain python list is instrumented for the
> collection)
> 
> Am I guaranteed that the objects' MapperExtension's before_insert()
> method will be invoked in the same order as the items in the
> collection?

INSERT order for items is based on the order in which the items were add()'ed 
to the session.    If the items were add()'ed as a result of save-update 
cascade at the point at which they were appended to the list, then you'd get 
that effect, but if they got into the session through other means, then no.


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
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