Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DoctrineBridge] Fix data extraction in relation using IndexBy and different column name #38883

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

Closed

Conversation

bwach
Copy link

@bwach bwach commented Oct 29, 2020

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #38861
License MIT
Doc PR -

The issue is that the process of property data extraction fails when we have a situation when a relation has an "indexedBy" property set to a field with a column that isn't the same or doesn't follow the naming strategy, for example:

field: foo
colum: bar_baz

I changed it so first we treat it as a field and then we fall back to treating it as a column name as it is now

@derrabus
Copy link
Member

Can you have look at the fabbot failures, please?

@bwach
Copy link
Author

bwach commented Oct 29, 2020

Can you have look at the fabbot failures, please?

done, thanks for mentioning it

@jderusse jderusse changed the title Ticket 38861 column name not matching field [DoctrineBridge] Fix data extraction in relation using IndexBy and different column name Oct 29, 2020
@jderusse
Copy link
Member

Please have a look to a similar PR #38628

@xabbuh
Copy link
Member

xabbuh commented Nov 9, 2020

@bwach Thank you for your work on this. Can you confirm that #38628 fixes this issue as well?

@nicolas-grekas
Copy link
Member

Test case added to #38628, thanks @bwach

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

Successfully merging this pull request may close these issues.

6 participants