Comments (4)
Hello,
For using model manager, you should enable the corresponding SessionBuilder
: https://github.com/pomm-project/ModelManager#installation
Try with this config.php:
// Pomm Configuration
$container->loadFromExtension('pomm', array(
'configuration' => array(
'caraus' => array(
'dsn' => 'pgsql://%database.user%:%database.password%@%database.host%:%database.port%/%database.name%',
'class:session_builder' => '\PommProject\ModelManager\SessionBuilder',
),
),
'logger' => array(
'service' => '@logger',
),
));
from pomm-bundle.
May we close this issue ?
from pomm-bundle.
I'm ashamed now... I thought that since the ModelManager is a dependency, it would be somehow intergrated and work automatically and I couldn't associate the lines
my_db2:
dsn: 'pgsql://%db_user2%:%db_password2%@%db_host2%:%db_port2%/%db_name2%'
class:session_builder: '\PommProject\ModelManager\SessionBuilder'
with my issue. More detailed error message is anyway good.
The bundle works now like a charm. Thanks.
from pomm-bundle.
As I said, it is always good for us to see where newcommers do meet the real world (c) so we can make things as easy as possible.
Thank you for your feedback, do not hesitate to share good and bad sides of your experience with Pomm2 with us.
from pomm-bundle.
Related Issues (20)
- Question about Injection via symfony instead of Pooler HOT 6
- [Profiler] Add the "See runnable query"
- [ProfilerExtension] Twig Extensions is abandonned
- The PommProject\SymfonyBridge\PropertyInfo\Extractor\PommExtractor class is deprecated HOT 6
- Pomm Bundle not compatible with PHP >= 8.x
- Unique "Object" Validator in Pomm HOT 1
- Still not stable? HOT 10
- Twig and relation HOT 2
- Unable to load @ParamConverter annotation HOT 1
- impossible to use a session builder as a service HOT 8
- impossible to initialize a modelLayer
- deprecated configuration key throws an exception with Sf 3.3 HOT 1
- Warning raised with SF 3.3 in ContainerModelLayerPooler HOT 2
- BC break: default session builder should be the model manager HOT 1
- Support symfony4 HOT 2
- Rewrite test for sf4 HOT 1
- Update README with flex installation instruction HOT 1
- An alias can not reference itself, got a circular reference on ProductModel HOT 3
- Error 500 on query explain HOT 1
- Custom converter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pomm-bundle.