I have noticed that if you have different associations with the same
name, CakePHP will die with an infamous PHP White Screen of Death
(which is difficult to debug). Is it possible for CakePHP to handle
this a bit more gracefully?

Example:

You have a 'Region' model which is a hierarchical tree ($actsAs =>
'tree' or similar). You give it a belongsTo association 'Parent',
using parent_id.

You also have a 'Category' model which is also a hierarchical tree.
You give it a belongsTo association 'Parent', using parent_id.

CakePHP will now die with a White Screen of Death (no output, not
logging, etc).


I understand why you wouldn't want to allow this - CakePHP is designed
to return find results etc as a flat array indexed by Model/
Association name, so you could wind up having nasty issues with both
'Parent' associations overwriting each other. But would it be possible
to have CakePHP at least bomb out with an error in this situation?
(it's quite confusing if you're either new to CakePHP, or if you have
a large schema which you then go through and implement only to get a
WSoD).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to