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





--~--~---------~--~----~------------~-------~--~----~
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