While perusing through the new Containable behaviour test cases, I've come across something that I find puzzling.
In the testFindConditionalBinding() test ( http://bin.cakephp.org/view/92242137 ), there are conditions specified in Article->contain( ..... 'Tag' => array('conditions'=> .....)) (line 2 in the bin paste), which are meant to restrict the containable bindings based on the specified condition, which in this case is a creation date. However, in the expected result array, the third result set (lines 15-19) contains an empty Tag result, because the fixture data associated with that data does not respect the required conditions specfied in Article->contain(...). Shouldn't the default behaviour of this behaviour be that, when a condition is not satisfied on an associated model condition, then no data is returned from the find query? If not, then I believe that this should at least be an option for this behaviour, since filtering results from multiple hasMany/belongsTo/HABTM associations through this behaviour would be quite interesting. -Joel. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en -~----------~----~----~----~------~----~------~--~---
