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

Doctrine array type and ramsey/uuid 4.1 #154

Closed
HugoMestreCL opened this issue Aug 14, 2020 · 3 comments
Closed

Doctrine array type and ramsey/uuid 4.1 #154

HugoMestreCL opened this issue Aug 14, 2020 · 3 comments

Comments

@HugoMestreCL
Copy link

HugoMestreCL commented Aug 14, 2020

Hey,
first let me thank you for these great libraries before everything else.

Recently we started having issues after an upgrade from version 4.0.1 to version 4.1.0 of ramsey/uuid and it was because we're saving doctrine array results to an array type property on our Entity, which doctrine translates to a longtext type column to store the serialized array. So what was happening on our app was that the serialization string, on the database column, was getting truncated as soon as the raw bytes of the time ordered uuid started and that would then lead to an unserialization exception.

There's a few things in the mix here, first i'm not sure that doctrine array type should translate to a longtext column, but since it is, isn't possible that this change is a bigger change that at first it seemed to be? Is this enough to qualify as a BC break?

To be clear, what was a text string as a serialization result in version 4.0.1 of ramsey/uuid is now a string with raw bytes since version 4.1.0.

@tonyellow
Copy link

I have the same problem

@537mfb
Copy link

537mfb commented Oct 26, 2020

see if the discussion in ramsey/uuid#329 helps

@ramsey ramsey closed this as completed Nov 8, 2021
@ramsey
Copy link
Owner

ramsey commented Nov 8, 2021

Upgrading to ramsey/uuid 4.2 should fix this. If not, please let me know.

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

No branches or pull requests

4 participants