Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix column naming for deeper embedded entities #969

Merged
merged 1 commit into from
Oct 18, 2017

Conversation

Ostrzy
Copy link
Contributor

@Ostrzy Ostrzy commented Oct 1, 2017

Example from provided test would be "countersInformationDescription" which previously would get database name "countersCountersInformationDescription". Problem was that parentEmbeddedMetadata was already taken into consideration when building prefix so anything deeper than one level would add earlier prefixes multiple times.

Previously buildParentPrefixes for countersInformationDescription would be ["counters", "counters_information] and now it is simply ["counters_information"].

The base test for insert, update, remove is basically the same as the one for embedded columns for MongoDB.

Example from provided test would be "countersInformationDescription" which previously would get database name "countersCountersInformationDescription". Problem was that parentEmbeddedMetadata was already taken into consideration when building prefix so anything deeper than one level would add earlier prefixes multiple times.

Previously `buildParentPrefixes` for `countersInformationDescription` would be `["counters", "counters_information]` and now it is simply `["counters_information"]`.
@pleerock pleerock merged commit 02eb1d1 into typeorm:master Oct 18, 2017
@pleerock
Copy link
Member

Thank you!

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.

None yet

2 participants