Skip to content
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

[Bundles] DoctrineFixturesBundle is missing ODM related information #12602

Closed
tarlepp opened this issue Nov 7, 2019 · 9 comments
Closed

[Bundles] DoctrineFixturesBundle is missing ODM related information #12602

tarlepp opened this issue Nov 7, 2019 · 9 comments
Labels

Comments

@tarlepp
Copy link

tarlepp commented Nov 7, 2019

See this issue doctrine/DoctrineMongoDBBundle#600

@alcaeus
Copy link
Contributor

alcaeus commented Nov 7, 2019

I'm not sure if DoctrineFixturesBundle should contain any ODM related documentation: while the name suggests that it takes care of fixtures for more projects, it only handles fixtures for ORM. ODM fixture functionality is completely contained in DoctrineMongoDBBundle.

@tarlepp
Copy link
Author

tarlepp commented Nov 7, 2019

hmm, true but there isn't really documentation for ODM fixtures under Bundles related to Doctrine project https://symfony.com/doc/bundles/ so maybe we need to to change that part to cover ODM related stuff too?

eg. currently https://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html doesn't contain anything about fixtures.

@tarlepp
Copy link
Author

tarlepp commented Nov 7, 2019

I'm not sure if DoctrineFixturesBundle should contain any ODM related documentation: while the name suggests that it takes care of fixtures for more projects, it only handles fixtures for ORM. ODM fixture functionality is completely contained in DoctrineMongoDBBundle.

And for that I think that it would be more clearer to users if that DoctrineFixturesBundle documentation says that this bundle is for Doctrine ORM and not for ODM.

@javiereguiluz
Copy link
Member

ODM fixture functionality is completely contained in DoctrineMongoDBBundle.

@alcaeus what do you think about doing the same with DoctrineBundle and ORM fixtures?

@alcaeus
Copy link
Contributor

alcaeus commented Nov 8, 2019

It's on my list of things - I wanted to start making some plans to treat ORM and ODM the same. The idea is to either move common functionality to DoctrineBridge and have an ORMFixturesBundle and ODMFixturesBundle (to avoid optional dependencies in the respective mapper bundles), or have a generic bundle and provide extra packages for mapper-specific glue code. It's on the table, but time is a severe constraint at the moment.

@javiereguiluz
Copy link
Member

Closing in favor of doctrine/DoctrineFixturesBundle#321

@LorensoD
Copy link

LorensoD commented Dec 4, 2020

@tarlepp, did you find a way to get fixtures working using the DoctrineMongoDBBundle? Or is there any other way of writing fixtures for MongoDB which you could recommend?

@tarlepp
Copy link
Author

tarlepp commented Dec 5, 2020

@tarlepp, did you find a way to get fixtures working using the DoctrineMongoDBBundle? Or is there any other way of writing fixtures for MongoDB which you could recommend?

Nope, that doctrine/DoctrineFixturesBundle is not for ODM, I'm not sure if there is separated package for ODM.

@alcaeus
Copy link
Contributor

alcaeus commented Dec 7, 2020

@tarlepp, did you find a way to get fixtures working using the DoctrineMongoDBBundle? Or is there any other way of writing fixtures for MongoDB which you could recommend?

Nope, that doctrine/DoctrineFixturesBundle is not for ODM, I'm not sure if there is separated package for ODM.

Nope, the functionality is built into the doctrine/DoctrineMongoDBBundle, but requires the user to require the doctrine/data-fixtures package. See the doctrine:mongodb:fixtures:load command for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants