Closed GromNaN closed 9 years ago
It's a known bug since the last version of the model manager. We're working on a fix. /ping @sanpii @chanmix51
Is there something to configure for the class:session_builder ?
Yes, as you can see in the README:
redshift:
dsn: 'pgsql://%redshift.username%:%redshift.password%@%redshift.host%:5439/%redshift.database%'
class:session_builder: '\PommProject\ModelManager\SessionBuilder'
Thanks. I had copied the 1st configured line of the README.
So, the problem comes from the configuration. You need the session_builder parameter to use the generators. If custom session_builder is not defined, the default one is a foundation/sessionBuilder, and generators need modelManager/sessionBuilder
I've submitted a patch to set the default config: https://github.com/pomm-project/pomm-bundle/pull/39/files
There's already a default value in PommProject\Foundation\Pomm, but this way looks fine to override it cleanly.
I've done it the same way on ZF2 Pomm Module
I'm trying to install the PommBundle (latest version).
Here is my config:
When running the following command I get an exception:
Is there something to configure for the
class:session_builder
? This config is in the Configuration class, but I don't find the expected value.