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

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

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