Re: [CakePHP : The Rapid Development Framework for PHP] #1209: Find method for HABTM should allow for specifying conditions on the join model

2009-04-04 Thread CakePHP : The Rapid Development Framework for PHP
#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: 
CakePHP : The Rapid Development Framework for PHP 
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
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #1209: Find method for HABTM should allow for specifying conditions on the join model

2009-01-15 Thread CakePHP : The Rapid Development Framework for PHP
#1209: Find method for HABTM should allow for specifying conditions on the join
model
-+--
Reporter:  kitten| Owner:   
 
Type:  Enhancement   |Status:  
closed
Priority:  Medium| Milestone:  
1.2.x.x   
   Component:  Model |   Version:  
RC1   
Severity:  Normal|Resolution:  
fixed 
Keywords:  find HABTM conditions join kitten motin gwoo  |   Php_version:  
PHP 4 >= 4.3.0
Cake_version:|  
-+--
Comment (by chmoindron):

 Replying to [comment:9 the_undefined]:
 > This should be doable now using the new Containable behavior together
 with setting the 'with' property for HABTM.

 Not really. Or I didn't find how to do it. Containable does indeed filter
 results, but if I have, let's say, Post HABTM Tag, and I set contain
 Tag.name='whatever', I'll still get all the posts, with an empty Tag
 array.

 So, maybe this ticket could be reopened?

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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
-~--~~~~--~~--~--~---