search for: wiher

Displaying 1 result from an estimated 1 matches for "wiher".

Did you mean: wider
2006 Jan 12
2
Finding by association
...ontroller has_and_belongs_to_many :class1s has_and_bleongs_to_many :otherClasses end Now, when I run the following query, @objects = Class1.find(:all, :conditions => ["class2s.id = ?", params[:id]], :include => :class2s) I expect to get a collection of Class1 objects wihere each Class1 object would have a fully loaded collection of Class2 objects (since I asked to :include => :class2s). However, instead, I get a collection of Class1 objects that only have a single Class2 object in their class2s collection (the Class2 object with the id that I specified in the...