CakePHP - Set recursive to -1 in AppModel then use Containable behaviour as appropriate

Posted by Leo on Stack Overflow See other posts from Stack Overflow or by Leo
Published on 2010-03-18T16:01:00Z Indexed on 2010/03/18 16:11 UTC
Read the original article Hit count: 496

When using CakePhp would it be advisable to set recursive = -1 in the AppModel class and then use the Containable Behaviour whenever you need a deeper data relationship?

I believe this would give my applications the best chance of avoiding database related sluggish performance but is the methodology sound?

Thanks

Leo

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about recursive