Hello,
I've a problem with a self-joined relation :
<?php
class Favori extends AppModel {
var $name = 'Favori';
var $primaryKey = 'id_fav';
var $validate = array(
'libelle' => array('notempty')
);
//The Associations below have been created with all possible keys,
those that are not needed can be removed
var $belongsTo = array(
'Parent' => array('className' => 'Favori',
'foreignKey' =>
'id_parent'
)
);
var $hasMany = array(
'Childs' => array('className' => 'Favori',
'foreignKey' =>
'id_parent'
)
);
}
?>
When I call the model in an other controller than
"FavorisController" :
<?php
class NotesController extends AppController {
...
var $uses = array("Note", "Favori", "Item");
...
}
?>
CakePHP fall in an infinite loop before to run the "beforeFilter"
method causing an apache reboot...
If anyone have an idea to solve this problem. (I'm using the last
version of CakePHP)
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---