google-code-export / cfwheels

Automatically exported from code.google.com/p/cfwheels
0 stars 0 forks source link

Customize Associations #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add the ability to further customize associations when setting them up. You
should be able to pass in the where argument for example. This is then used
in all queries done by Wheels.

Original issue reported on code.google.com by per.djurner@gmail.com on 24 Jul 2008 at 4:23

GoogleCodeExporter commented 9 years ago

Original comment by per.djurner@gmail.com on 6 Mar 2009 at 11:15

GoogleCodeExporter commented 9 years ago

Original comment by per.djurner@gmail.com on 7 Mar 2009 at 9:26

GoogleCodeExporter commented 9 years ago
I think this change could be part of a larger scoping system built into wheels. 
For
example, I could setup default ordering for all queries that are run on my page 
object.

This is a pretty good article on named scopes, it comes from a testing 
perspective.

http://www.simonecarletti.com/blog/2009/06/how-to-test-rails-activerecord-named-
scopes/

Original comment by james.t....@gmail.com on 31 Oct 2009 at 6:04

GoogleCodeExporter commented 9 years ago
link to the merge_conditions method in rails>>activerecord

http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002310

Original comment by james.t....@gmail.com on 31 Oct 2009 at 6:11

GoogleCodeExporter commented 9 years ago
Issue 329 has been merged into this issue.

Original comment by per.djurner@gmail.com on 26 Nov 2009 at 2:38

GoogleCodeExporter commented 9 years ago

Original comment by per.djurner@gmail.com on 6 Dec 2009 at 6:02

GoogleCodeExporter commented 9 years ago

Original comment by per.djurner@gmail.com on 12 Jul 2010 at 1:57

GoogleCodeExporter commented 9 years ago
I think this change request has been completed with the addition of the joinKey 
argument to all association setup methods. Closing.

Original comment by james.t....@gmail.com on 17 Nov 2010 at 1:31

GoogleCodeExporter commented 9 years ago
No, see my original comment: "You should be able to pass in the where argument 
for example". This enhancement likely involves integrating the defaultScope 
plugin with core.

Original comment by per.djurner@gmail.com on 17 Nov 2010 at 8:21

GoogleCodeExporter commented 9 years ago
for 2.0, the idea was to integrate the CFRel and ColdRoute plugins into core. 
CFRel already supports this.

Original comment by tpetru...@gmail.com on 29 Jun 2012 at 2:53