Hi,
I have tried *Has Many Through Relationship* by real time but its returning
me single result. Can you please help me?
*Complaint*
has_many :complaint_replies
has_many :staffs, :through=> :complaint_replies
*Staff*
has_many :complaint_replies
has_many :complaints, :through=> :complaint_replies
*Complaint Reply*
belongs_to :complaint
belongs_to :staff
*Thinking Sphinx Query*
Complaint.search(:with=>{:staff_ids=>Staff.first.id})
It's returning *single* result.
*Expected Output*
Staff.first.complaints
Its returning *more than one result* result.
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.