Displaying 1 result from an estimated 1 matches for "bride_id".
Did you mean:
bridge_id
2006 Feb 12
3
Error when Eager Loading "Not unique table/alias"
...t,
I get the error "Not unique table/alias" (myql 4.1) when trying eager
load 2 classes that use the same base class (not STI)
Example:
<code>
class Wedding < ActiveRecord::Base
belongs_to :bride, :class_name => ''Person'', :foreign_key => ''bride_id''
belongs_to :groom, :class_name => ''Person'', :foreign_key => ''groom_id''
end
</code>
Trying to eager load the bride and groom classes blows up because the
"people" table is left outer joined twice:
<code>
Wedding.find...