-
Notifications
You must be signed in to change notification settings - Fork 30
Upgrade the symfony ORM pack #1873
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
base: main
Are you sure you want to change the base?
Conversation
…mfony/orm-pack stack solved it.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
According to this there are new types for arrays. But they use string-join (imploding) or JSON. |
|
I guess they forgot to update this docs page: https://doctrine-dbal-rtd.readthedocs.io/en/latest/reference/types.html#array .. |
This comment was marked as off-topic.
This comment was marked as off-topic.
But what is the text content of one row? |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
migration diff command now gives me the following error: php bin/console doctrine:migrations:diff
[2025-11-21T19:24:06.420126+00:00] doctrine.INFO: Connecting with parameters array{"use_savepoints":true,"driver":"pdo_pgsql","idle_connection_ttl":600,"host":"127.0.0.1","port":5432,"user":"mbin","password":"<redacted>","driverOptions":[],"defaultTableOptions":[],"dbname":"mbin","serverVersion":"16","charset":"utf8"} {"params":{"use_savepoints":true,"driver":"pdo_pgsql","idle_connection_ttl":600,"host":"127.0.0.1","port":5432,"user":"mbin","password":"<redacted>","driverOptions":[],"defaultTableOptions":[],"dbname":"mbin","serverVersion":"16","charset":"utf8"}} []
[2025-11-21T19:24:06.518905+00:00] console.CRITICAL: Error thrown while running command "doctrine:migrations:diff". Message: "The namespace with name "public" already exists." {"exception":"[object] (Doctrine\\DBAL\\Schema\\Exception\\NamespaceAlreadyExists(code: 0): The namespace with name \"public\" already exists. at /home/melroy/Documents/projects/mbin/vendor/doctrine/dbal/src/Schema/Exception/NamespaceAlreadyExists.php:16)","command":"doctrine:migrations:diff","message":"The namespace with name \"public\" already exists."} []
In NamespaceAlreadyExists.php line 16:
The namespace with name "public" already exists.
doctrine:migrations:diff [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--namespace NAMESPACE] [--filter-expression FILTER-EXPRESSION] [--formatted] [--nowdoc|--no-nowdoc] [--line-length LINE-LENGTH] [--check-database-platform [CHECK-DATABASE-PLATFORM]] [--allow-empty-diff] [--from-empty-schema]Related? doctrine/migrations#1476 |
OK I removed the |

While we did upgrade symfony to v7.3. But we didn't upgrade the
symfony/orm-packstack in Mbin. So I started to upgrade the ORM pack, see also: https://symfony.com/doc/current/doctrine.html#installing-doctrineThen the file
EnumType.phpfailed with errors (where previously deprecations), which I then also fixed..Also
arrayis no longer a valid ORN database type: https://www.doctrine-project.org/projects/doctrine-dbal/en/stable/reference/types.html#array-typesSo I moved from
arraytojsontype.