23480 Posts in 18951 Topics by 2878 members
|Go to End|
3 May 2011 at 9:31pm
if I add ?flush=all to my URLS it results in:
[Tue May 03 11:26:38 2011] [error] [client xx.xx.xx.xx] PHP Fatal error: Maximum function nesting level of '100' reached, aborting! in /var/www/domain.com/sapphire/core/model/DataObjectSet.php on line 1041
The stack trace has more than 100 items.
3 May 2011 at 9:58pm
do you have dataobjects that have a circular relationship?
obj1 has_one obj2
obj2 has_many obj3
obj3 has_one obj1
3 May 2011 at 10:32pm
yes I have such relations ...
3 May 2011 at 10:36pm
I'd try removing it (temporarily) and see if that is causing it. I've had trouble with ModelAdmin when the DataObjects are being scaffolded that with relationships like these... in some cases I've just had to hardcoded the odd has_one as TableID and avoid using the $obj->Table(), and instead always do a DataObject::get_by_id
3 May 2011 at 10:37pm
ok & thx for that infos.
|Go to Top|