Just noticed that I did not specify that I was running on CakePhp 1. 2 RC1
On Tue, Jun 17, 2008 at 3:59 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > Hello, > > I might fill in a ticket with this but as I don't know if it's an > obvious mistake from my part I'd rather post here first. Also I don't > know (yet) how to write tests. > > So the problem I'm facing is that I was trying to implement a > __construct method in a model like so : > > function __construct() { > > parent::__construct(); > > } > > all of a sudden y app would stop working and all I could get was a > blank page (after a 5-10 s delay) > > So I tracked it down to models which have a self referencing > association like so : > > model is Category > > var $belongsTo = array( > 'ParentCategory' => array('className' => 'Category', > 'foreignKey' > => 'parent_id', > 'conditions' > => '', > 'fields' => > '', > 'order' => > '' > ) > ); > > > I thought doing this kind of self referencing was perfectly valid (and > it works fine apart from this __construct pb) > > so if anyone has any clues on what is going on, well, thank you :) > > thomas > > > > > -- ---------------------------------------------------------- http://www.myspace.com/thomasmery http://www.thomas-mery.net ---------------------------------------------------------- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---