Closed ma-si closed 6 years ago
Not an issue. Types are not registered for a specific entity manager instance but globally, so the 'types' array should be directly under 'doctrine'. See:
https://github.com/DASPRiD/container-interop-doctrine/blob/master/example/full-config.php#L121
I've tried setting the UuidType to 'types' array directly under 'doctrine' but it didn't work. Does it actually work?
Yes it does, I use it on every project.
Same here, this config didn't work for APP_ENV=prod
:
doctrine:
dbal:
types:
uuid: Ramsey\Uuid\Doctrine\UuidType
file config/packages/doctrine.yaml
for prod no config is overridden. I had to manually add this:
\Doctrine\DBAL\Types\Type::addType('uuid', 'Ramsey\Uuid\Doctrine\UuidType');
to bin/console.php and public/index.php
Well yes, types goes under doctrine, not under dbal.
Because their example is not for container-interop-doctrine.
That error is not coming from container-interop-doctrine :)
:beetle: Types defined in the configuration are not registered.
Example uses
zend-expressive
+zend-servicemanager
+container-interop-doctrine
uuid
Using the Doctrine CLI
Configuration
Entity
Temp solution :hankey:
Manually addType()