Have you tried reproducing this with pure NHibernate? (to find if the
source of this behavior is really ActiveRecord or NHibernate)

--
Mauricio



On Sun, Jun 3, 2012 at 12:02 PM, Mark Jensen <[email protected]> wrote:

> Hi
>
> im running a web application with SessionScopeWebModule inplace.
>
> I have a Parent/Child (HasMany with bi-directional) relation where the
> primarykey is a GuidComb.
>
> When I add a child to the parent and save that parent, I would expect
> the ID of the child to be available afterwards, but it isn't. However
> if I call Flush right after the Save, the ID is available. This
> problem exist on all my HasMany relations.
>
> However in another place I have a HasAndBelongsToMany relation between
> the Parent and some other object and when I add and object to that
> relation, the ID is available afterwards. (no flushing needed here)
>
> It seems a bit odd that the behavior differs.
>
> Hope some one can explain this to me :)
>
> best regards
> Mark
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" 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/castle-project-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en.

Reply via email to