Closed lucalbert closed 6 years ago
This bundle does ORM fixtures only. ODM fixture handling is in doctrine/mongodb-odm-bundle
: https://github.com/doctrine/DoctrineMongoDBBundle/blob/master/Command/LoadDataFixturesDoctrineODMCommand.php
Any ideas why there is no documentation about this? How do I get dependency injection working with my fixtures? Seems straight forward in the orm fixtures here
@trq If you first run composer req doctrine/data-fixtures
, then doctrine:mongodb:fixtures:load
command will be available straightaway.
Fixtures documentation is here: https://github.com/doctrine/data-fixtures.
I have error
The given 'driver' mongodb is unknown, Doctrine currently supports only the following dr
ivers: pdo_mysql, pdo_sqlite, pdo_pgsql, pdo_oci, oci8, ibm_db2, pdo_sqlsrv, mysqli, dri
zzle_pdo_mysql, sqlanywhere, sqlsrv
After removing this bundle I have
php bin/console doctrine:fixtures:load --fixtures=src/DataFixtures/
There are no commands defined in the "doctrine:fixtures" namespace.
Did you mean one of these?
doctrine
doctrine:mongodb
doctrine:mongodb:cache
doctrine:mongodb:fixtures
doctrine:mongodb:generate
doctrine:mongodb:mapping
doctrine:mongodb:schema
You may be looking for a command provided by the "DoctrineFixturesBundle" which is curre
ntly not installed. Try running "composer require doctrine/doctrine-fixtures-bundle --de
v".
But in case of
./bin/console doctrine:mongodb:fixtures:load
I see
[ERROR] Could not find any fixture services to load.
Please create a separate issue instead of reviving an old, resolved issue. Thanks.
Hello,
When I install the package on an SF4 application with ODM, I get this error message when removing the cache:
Then no more console commands work and always return the same error.
My composer.json file is this one :
Thank you