
undefined method `child_key' for nil:NilClass
Reported by BrianTheCoder | June 22nd, 2008 @ 09:17 PM
When I create a habtm relationship and try to add to it with << I get the above error.
Comments and changes to this ticket
-
Dan Kubb (dkubb) June 23rd, 2008 @ 07:13 PM
BrianTheCoder, it appears as if << is currently specced here:
http://github.com/sam/dm-core/tr...
Can you supply a failing spec so we can reproduce this error?
-
BrianTheCoder June 24th, 2008 @ 01:21 AM
Here's the module I wrote that is failing. In the init_accessors it always fails on self.accessors <<
-
-
Sam Smoot July 1st, 2008 @ 10:20 AM
- State changed from new to open
- Tag set to bug, dm-core, has_and_belongs_to_many
I believe this happens when the Property doesn't get generated properly. Hopefully resolved RSN with Extlib::DependencyQueue.
-
Dan Kubb (dkubb) January 8th, 2009 @ 04:38 AM
- State changed from open to accepted
- Assigned user changed from Sam Smoot to Dan Kubb (dkubb)
-
Jonathan Stott (namelessjon) February 22nd, 2009 @ 11:10 AM
This is still a problem as of 02a93b11ce576361789340f78babf7bd4f796161, though it gives the error "Cannot find target relationship people or person in PhotoUser within the :default repository".
See attached test.
-
Dan Kubb (dkubb) May 28th, 2009 @ 04:38 AM
- State changed from accepted to resolved
- Tag changed from bug, dm-core, has_and_belongs_to_many to bug, dm-core, has_and_belongs_to_many, one_file_test
(from [b472863ee5c42665b4a6a601efb8ef66bc8cbceb]) Fixed belongs_to name in m:m join model to use the singularized relationship name
- This allows you to use a different relationship name from the target model. Previously in this case it was assumed the relationship would always be the underscored target model name, which is not always true.
[#406 state:resolved] http://github.com/datamapper/dm-core/commit/b472863ee5c42665b4a6a60...
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 »
People watching this ticket
Attachments
Referenced by
-
406 undefined method `child_key' for nil:NilClass [#406 state:resolved] http://github.com/datamapper/dm-co...