$this->Individual->recursive = '-1'; //turn off all associations.
$this->Individual->recursive = '0'; //retrieves only belongsTo
You do not have to set them in the class like you have done using var $recursive = #;
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
On 6/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I've got a find that I'm running that needs to have $recursive set to 3
however the other strands of my models don't go that deep and Cake
throws "generateAssociation" errors when it hits them and tries to "go
deep"
How do I get Cake to stop on the shallow routes but go the full depth
on the deep routes?
you can see my models, tables etc at
http://cakephp.org/pastes/show/e4c5088ed5c709653cc526dccac648be
thanks
Sarah
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---