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 batch delete on entities with json columns (PostgreSQL) #1695

Merged
merged 2 commits into from
Sep 28, 2022

Conversation

jordisala1991
Copy link
Member

@jordisala1991 jordisala1991 commented Sep 27, 2022

Subject

I am targeting this branch, because this is BC.

Closes issues related with batch delete on entities with json columns. Will still need to remove the jsonb from media-bundle to avoid problem for non postgres users.

Changelog

### Fixed
- Fix batch delete on entities with json columns on PostgreSQL.

@jordisala1991
Copy link
Member Author

Does this fixes your issue @eerison ?

What do you think about it @VincentLanglet ? The code has the distinct since a commit 8 years ago. Can this cause trouble in some edge cases? I do not know in which cases I would want to do a distinct here.

@eerison
Copy link
Contributor

eerison commented Sep 28, 2022

Does this fixes your issue @eerison ?

What do you think about it @VincentLanglet ? The code has the distinct since a commit 8 years ago. Can this cause trouble in some edge cases? I do not know in which cases I would want to do a distinct here.

Hey @jordisala1991 I tested your Branch and it works ❤️

eerison
eerison previously approved these changes Sep 28, 2022
@jordisala1991 jordisala1991 changed the title Update ModelManager.php Fix batch delete on entities with json columns (PostgreSQL) Sep 28, 2022
@jordisala1991
Copy link
Member Author

Should we release this as patch or minor? @VincentLanglet

@VincentLanglet
Copy link
Member

Maybe safer as a minor ?

@jordisala1991 jordisala1991 added minor and removed patch labels Sep 28, 2022
@VincentLanglet VincentLanglet merged commit 35930ce into 4.x Sep 28, 2022
@VincentLanglet VincentLanglet deleted the jordisala1991-patch-1 branch September 28, 2022 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants