Skip to content

Conversation

@estolfo
Copy link
Contributor

@estolfo estolfo commented Jan 26, 2016

No description provided.

estolfo added a commit that referenced this pull request Jan 26, 2016
MONGOID-3606 Don't evolve foreign keys of polymorphic relations
@estolfo estolfo merged commit 1939ace into mongodb:master Jan 26, 2016
@estolfo estolfo deleted the MONGOID-3606-foreign-key-poly branch February 4, 2016 10:08
@ElMassimo
Copy link
Contributor

ElMassimo commented Jul 25, 2017

The bug report was very old, it was probably already fixed in that version of Mongoid, but it stated:

Polymorphic foreign keys are not converted to ObjectIds

While this change will ensure that foreign keys are not converted to ObjectIds, isn't the expected behaviour the opposite?

It's desirable for polymorphic foreign keys to be evolved to Object Ids, because it's more consistent with the behaviour for non-polymorphic associations. Could we please revert this? @estolfo

@estolfo
Copy link
Contributor Author

estolfo commented Jul 26, 2017

@ElMassimo
Copy link
Contributor

Oh, #4416, excellent! Thanks @estolfo 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants