Hi,

I'm currently trying to build a comment system and used the bakery
comment system as a starting point. I like the approach there but seem
to have a problem with the models. They use a Comment model with
derivations of Parent and Childs. It is defined like this:

var $name = 'Comment';

var $belongsTo = array(
                        'ParentComment' => array('className' => 'Comment',
                                                'foreignKey' => 'comment_id'));

var $hasMany = array(
                        'ChildComment' => array('className' => 'Comment',
                                                                'foreignKey' => 
'comment_id'));

The $hasMany definition seems to be the problem - it always leads to a
controller dump due to a fatal memory error on ANY page I call. So
just loading the model definition causes my cakePHP setup to crash.

Any ideas what might be the reason for this or how to get a fix? The
controller dump does not give any information where the problem occurs
so this is a little bit tricky for me...

Thanks!

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