I have just com across a very strange issue with Cake. I have ACL installed in my app, and I havre a self-referencing table in that app as well (Parent-Child).
In my app_controller, I pull data for the self-referencing model for every page load (it runs the menu), and it works fine for all the pages that aren't directly related to the ACL. For instance the users model and controller are directly related to the ACL, as is the groups model and controller. The trouble is, when I access a page that is directly related to ACL, for some reason, the pages model (the self-referencing model), gets thrown into an infinite recursion, trying to build the model relationships, and gets stuck trying to go up the tree. Here is an excerpt from my xdebug output when I get the "Fatal error: Maximum function nesting level of '100' reached" error: AppController->beforeRender( ) ..\controller.php:731 ClassRegistry->init( 'Page', ??? ) ..\app_controller.php:122 Model->__construct( array('class'=>'Page', alias=>'Page'), ???, ??? ) ..\class_registry.php:134 Model->__createLinks( ) ..\model.php:417 Model->__constructLinkedModel( 'Parent', 'Page ) ..\model.php:608 ClassRegistry->init( array('class'=>'Page', alias=>'Parent'), ??? ) .. \model.php:635 Model->__construct( array('class'=>'Page', alias=>'Parent'), ???, ??? ) ..\class_registry.php:134 Model->__createLinks( ) ..\model.php:417 Model->__constructLinkedModel( 'Parent', 'Page' ) ..\model.php:608 -- and it's entered the infinite recursion Has anybody seen this before, and does anybody have any suggestions on how to rectify it? --~--~---------~--~----~------------~-------~--~----~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---