
Laziness in Keys
Reported by Tony Pitale | May 14th, 2008 @ 12:13 PM
If I have a model, Item, where the id property is declared
property :id, Text, :key => true, :field => "item_num"
and then I try Item.first(:id => 'known_id'), I get back nil.
If I do Item.first.id, I get back nil.
Comments and changes to this ticket
-
Tony Pitale May 14th, 2008 @ 01:44 PM
- Title changed from Property id returns nil for id to Laziness in Keys
I'm closing this and opening another bug.
-
Tony Pitale May 14th, 2008 @ 01:45 PM
Properties that are keys, regardless of type should not be lazy. I'm writing specs and fixes right now. Comment if you disagree.
-
-
Dan Kubb (dkubb) May 14th, 2008 @ 02:06 PM
- State changed from new to resolved
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »