Re[2]: How add condition for associated model in findAll()

2006-08-16 Thread Michal Bilcik
Nazdar, 15. 8. 2006, Samuel DeVore napisal: some examples can be found at http://cakebaker.wordpress.com/2006/02/22/new-feature-bindmodelunbindmodel/ Sam D Thanks, it works: $this-WaypointType-bindModel(array('hasMany' = array('Waypoint' =array('foreignKey' = 'waypoint_type_id',

Re: Re[2]: How add condition for associated model in findAll()

2006-08-16 Thread Jon Bennett
In different situations in my application I need use different conditions in model assocciations and every time i must use bindModel or there is another way how to do it ? you could create multiple associations in your models (you can link the 2 same models using different names as many times