
Proxy method prevents calling some_object.some_assocation.id for SomeObject has_one :some_assocation
Reported by Mase | May 6th, 2008 @ 04:07 PM
I think it's a mistake hiding has_one behind has_many . My User has_one :profile, but since Object#id is a valid (though deprecated) method, calling user.profile.id will return the object_id of DataMapper::Associations::HasManyAssociation::Set.new instead of proxying to user.profile.first
Comments and changes to this ticket
-
Sam Smoot May 21st, 2008 @ 01:14 AM
- State changed from new to invalid
Does not apply to DM 0.9.0. Will not re-work associations in DM 0.3.0.
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 »