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', 'conditions'  => 'Waypoint.is_valid 
= \'yes\''))));

but it is "clean" way or it is "dirty hack" ?

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 ?

-- 
pointer


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to