-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Uuid] Regression with Doctrine #39152
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
Comments
Hello @94noni $ show create table my_table;
...
-# symfony 5.2-RC1
-`my_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '(DC2Type:ulid)',
+ # symfony 5.2-RC2
+`my_id` binary(16) NOT NULL COMMENT '(DC2Type:ulid)',
... Could you please check the content of the table and assert the table contains binary fileds like: mysql> select * from my_table;
+------------------------------------+------+
| my_id | name |
+------------------------------------+------+
| 0x0175FC41B374F72A3B65BD44884DFFDB | demo |
+------------------------------------+------+
1 row in set (0.00 sec) If you are still using |
@jderusse thank you for this explanation, will try it very soon and report back (and close the issue if it is ok) |
yes indeed, they are represented like this in database when adding a new prop and regenerating a migration, the SQL migration looks like:
I will then drop those column and recreate them, repopulating the data :) thank you! |
@94noni if you use MySQL 8 (or newer), you can use the |
@stof yes i've read that but now i am on 5.7 |
Symfony version(s) affected: 5.2.0-RC2
Description
Regression from 5.2.0-RC1 on Uuid and Doctrine
How to reproduce
name : symfony/uid
versions : * v5.2.0-RC2
name : doctrine/doctrine-bundle
versions : * 2.2.1
Previous code ok:
Actual same code returns
null
Possible Solution
.
Additional context
It appears also that, the generation and the persistence is broken
Maybe related on changes here: v5.2.0-RC1...v5.2.0-RC2
See previous issue at #38929
Maybe related also to #39144
Thank you
The text was updated successfully, but these errors were encountered: