I made sure about addChild().
 
My actual bizobj relations are similar to the following:
biz1 is parent
biz2 is child of biz1
biz3 & biz4 both are childs of biz2
 
I have specified like this:
biz1.addChild(biz2)
biz2.addChild(biz3)
biz2.addChild(biz4)
 
Other definitions (LinkField, FillLinkFromParent, nonUpdateFields) are in place.
 
Is that correct?
 
---Vineet

________________________________
From: Paul McNett <[email protected]>
To: Vineet Deodhar <[email protected]>; Dabo Users list <[email protected]>
Sent: Wednesday, 12 October 2011, 19:18
Subject: Re: [dabo-users] parent: child: grandchild saveAll()

On 10/12/11 1:30 AM, Vineet Deodhar wrote:
> I have parent:child:grandchild relationship defined.
> LinkField, FillLinkFromParent, AddChild are all specified.
>
> When there is no change in parent Bizobj and if changes are there in child&  
> grandchild bizobjs;
> and I try to parentBizobj.saveAll(), nothing is saved.
>
> But if I do childBizobj.saveAll(), changes are saved correctly.
> Surely, this is not expected behaviour.
>  From the docstrings of saveAll(), whenever saveAll() is called on parent 
>bizobj, it would check&  commit all
> changes/additions/deletions in self&  all children.
>
> Any hint?

I have lots of these - and deeper - relationships, and when the parent is saved 
everything is saved in the chain. Please make sure you've called addChild() on 
all of 
the parent/child relationships. In your case, make sure that you've called 
parent.addChild(child).

Paul

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to