http://cakebaker.wordpress.com/2006/02/22/new-feature-bindmodelunbindmodel/
Sam D
ps it a great feature, but if you find yourself using it all the time you might want to think about adding conditions to the model files them self and undoing the conditions when you do not need them (I found a recent case where I was using bindModel all the time to customize something the same way each time except for rare cases, so I added the condtion to the model and in the rare cases used bind model, and bang less code :) got to love removing code....
On 8/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
use bindModel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---
- Re: How add condition for associated model in findAll() [EMAIL PROTECTED]
- Re: How add condition for associated model in findA... Samuel DeVore
- Re[2]: How add condition for associated model i... Michal Bilcik
- Re: Re[2]: How add condition for associated... Jon Bennett
