I am trying eager loading with has_many through association. But i get
a could not find id error (detaiLs on error below) .
has_many :contactoccasions through :presenceships
#MOre person assocaitions here
has_many :people through :presenceships
Now when i try the statement
i get an SQL error could not find id. I checked the development log and
…presenceships.[id] AS t5_r0, presenceships.[contactoccasion_id] AS
t5_r1, presenceships.[person_id] AS t5_r2, contactoccasions.[id] AS
i cannot understand why it tried to get presenceships.id
As it is a join association model it has no id column
Can anyone please tell me what is wrong???