Setup errors [Could not add child object ...]

0 views
Skip to first unread message

Michael Duff

unread,
Dec 30, 2006, 11:22:16 PM12/30/06
to Php Object Generator
Hello All,

I am creating a database with 10 main objects (not counting maps) and I
am getting this error:

*********************************************************
Could not add child object [table]

Could not add child object [table]

Could not add child object [table]

Save(deep) ignored since AddChild could not be performed
**********************************************************

The only thing that I can see that might cause problems is how I am
trying to do a modification table (to track who modified what and when)

modification
modificationid
date [timestamp]
tablename [parent]
tablename [parent]
tablename [parent]

tablename represents all the tables that it can mange modifications
for, the other tables have the modification table as a child.

I have not done much looking into this, but the error above gives me no
idea what could be the problem. please ask away if you need more
details.

Mike

Joel

unread,
Dec 30, 2006, 11:54:32 PM12/30/06
to Php Object Generator
My guess is that it's because you have more than 1 attribute with the
same name. Try having only 1 attribute tablename and see if the tests
pass.

Joel

Joel

unread,
Dec 31, 2006, 1:14:26 AM12/31/06
to Php Object Generator
Oh, and can you make sure you're using objects and setup files
generated by the latest version of POG (2.6).

Since the (Add Child) unit tests have changed between 2.5 and 2.6, if
you're using 2.6 objects with Setup 2.6, the unit tests will fail.

Regards,
Joel

Joel

unread,
Dec 31, 2006, 1:17:07 AM12/31/06
to Php Object Generator
Sorry, I meant if your objects are 2.6, you need setup to be 2.6 as
well.

hope this makes sense.

Michael Duff

unread,
Dec 31, 2006, 6:30:31 AM12/31/06
to Php Object Generator
Joel, thanks for your quick reply, I am guessing its the second one
since I was reading your post about updating POG but it didnt even dawn
on me that i should update the setup files. thanks so much! love the
work your doing and keep it up.

Reply all
Reply to author
Forward
0 new messages