#1209: Find method for HABTM should allow for specifying conditions on the join
model
-------------------------------------------------------------+--------------
Reporter: kitten | Owner:
Type: Enhancement | Status:
reopened
Priority: Medium | Milestone:
1.2.x.x
Component: Model | Version:
RC1
Severity: Normal | Resolution:
Keywords: find HABTM conditions join kitten motin gwoo | Php_version:
PHP 4 >= 4.3.0
Cake_version: |
-------------------------------------------------------------+--------------
Changes (by flaccid):
* status: closed => reopened
* resolution: fixed =>
Comment:
I agree that containable is not the same behaviour and requires you to do
undesirable methods such as:
[http://teknoid.wordpress.com/2008/08/06/filtering-results-returned-by-
containable-behavior/ http://teknoid.wordpress.com/2008/08/06/filtering-
results-returned-by-containable-behavior/]
IMHO, the graceful and correct solution is to simply support associated
table conditions in find($conditions).
--
Ticket URL: <https://trac.cakephp.org/ticket/1209#comment:12>
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---