-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Configuration template is outdated #231
Comments
Could you please identify which packages you have updated? If you ran Since the last release of DoctrineMongoODMModule is from Nov 2020, I'd rather except an issue with an upstream dependency. |
Hello Dennis and thank you for your quick response. Thanks again. |
After commenting generate_... blocks everything works fine: // 'generate_proxies' => true, Looks like there is a change for using these but the template is still like this one. Thanks |
Indeed, if you look at module.config.php it says: 'generate_proxies' => Configuration::AUTOGENERATE_EVAL,
'proxy_dir' => 'data/DoctrineMongoODMModule/Proxy',
'proxy_namespace' => 'DoctrineMongoODMModule\Proxy',
'generate_hydrators' => Configuration::AUTOGENERATE_ALWAYS,
'hydrator_dir' => 'data/DoctrineMongoODMModule/Hydrator',
'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator',
'generate_persistent_collections' => Configuration::AUTOGENERATE_ALWAYS,
'persistent_collection_dir' => 'data/DoctrineMongoODMModule/PersistentCollection',
'persistent_collection_namespace' => 'DoctrineMongoODMModule\PersistentCollection',
'persistent_collection_factory' => null,
'persistent_collection_generator' => null, However, if you look module.doctrine-mongo-odm.local.php.dist, the file our installation guide instructs you to copy, it says: // 'generate_proxies' => true,
// 'proxy_dir' => 'data/DoctrineMongoODMModule/Proxy',
// 'proxy_namespace' => 'DoctrineMongoODMModule\Proxy',
//
// 'generate_hydrators' => true,
// 'hydrator_dir' => 'data/DoctrineMongoODMModule/Hydrator',
// 'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator',
//
// 'generate_persistent_collections' => Configuration::AUTOGENERATE_ALWAYS,
// 'persistent_collection_dir' => 'data/DoctrineMongoODMModule/PersistentCollection',
// 'persistent_collection_namespace' => 'DoctrineMongoODMModule\PersistentCollection',
// 'persistent_collection_factory' => null,
// 'persistent_collection_generator' => null, Would you like to create a pull request to fix this issue? |
That works as expected. |
I'll leave this one open as a reminder for fixing the template. |
See release 3.0.3. |
Hello,
After composer update it's throwing error:
"detail": "Argument 1 passed to DoctrineMongoODMModule\Options\Configuration::setGenerateProxies() must be of the type int, bool given, called in /prj/vendor/laminas/laminas-stdlib/src/AbstractOptions.php on line 118"
If I set 'generate_proxies' => 1, then I get the same error for hydrators.
when I set 'generate_hydrators' => 1 then I get:
"detail": "Service with name "doctrine.configuration.odm_default" could not be created. Reason: Invalid proxy generation strategy given - only AUTOGENERATE_FILE_NOT_EXISTS and AUTOGENERATE_EVAL are supported."
and I have these commented and uncommenting doesn't help:
Any idea what's missing?
Thanks
The text was updated successfully, but these errors were encountered: