
Collection#get doesn't typecast the given argument
Reported by Dirkjan Bussink | July 3rd, 2008 @ 06:40 AM
This results in the following not working correctly:
@person.addresses.get(params[:address_id])
This results in nil, because it looks in the @person.addresses list and the key there doesn't match the given key, because "1" != 1
Comments and changes to this ticket
-
Dirkjan Bussink July 3rd, 2008 @ 06:48 AM
Related to this it also seems that Model#get doesn't seem to set the identity map. Is there any reason for not doing this?
If it would do this, that would mean that Model#get would also need to typecast the argument.
-
Sam Smoot July 8th, 2008 @ 08:31 AM
- State changed from new to open
- Assigned user changed from Sam Smoot to Bernerd Schaefer
Bernerd, PDI.
-
Bernerd Schaefer July 8th, 2008 @ 11:10 AM
- State changed from open to resolved
This is fixed in http://github.com/sam/dm-core/co....
If you have any further issues with it, do let me know!
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 »