#117 ✓resolved
Jens

query_for_record fails with single_index in r143.

Reported by Jens | February 13th, 2010 @ 12:42 AM

As of revision 143, the query_for_record method fails when working in a single_index environment. The problem starts with the parameters -query_for_record only receives the id of record to be queried. It then attempts to construct the class with aaf_configuration[:class_name] but this approach will not work with polymorphic index members. The klass and id should be passed to query_for_record.

For example, if records of class Medium and Person is stored in the single_index, then calling query_for_record will only ever work with the one class that is stored in aaf_configuration[:class_name].

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages