#4693: Containable, unable to pass conditions as an array ------------------------------------------------+--------------------------- Reporter: francky06l | Owner: mariano.iglesias Type: Bug | Status: closed Priority: Medium | Milestone: 1.2.x.x Component: Behaviors | Version: RC1 Severity: Normal | Resolution: fixed Keywords: behavior containable conditions | Php_version: n/a Cake_version: 1.2.0.6311 beta | ------------------------------------------------+--------------------------- Comment (by Dieter_be):
Thanks for the response guys, But Mariano can you elaborate? You say what I do "is not how it works", but according to (what I understand from) what nate said in #5834 this should work. See the second example in that ticket with 'EventGroup.active' in the main condition. The only difference here is that the associations are deeper. Also, I don't think your test disproves my issue because there are only 4 models and the condition is only on the last model itself instead of "global". Maybe I should explain again what I actually want to do. A hasMany B hasMany C hasMany D hasMany E hasMany F hasMany G. I want to find all A's with all associated B/C/D/E/F's that are coupled to at least one G where G.name IN ('a','b'). So if there is no matching G, I don't need the A/B/C/D/E/F's either. Each tree starting from A should have at least one matching G. Thanks, Dieter -- Ticket URL: <https://trac.cakephp.org/ticket/4693#comment:9> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---