doctrine / DoctrineMongoDBBundle

Integrates Doctrine MongoDB ODM with Symfony
http://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html
MIT License
379 stars 229 forks source link

Feature request: Implement a DocumentType or MongoDocumentType Field à la EntityType field #749

Closed landure closed 1 year ago

landure commented 1 year ago

Symfony provides a simple way to create select fields from database tables using the EntityType field.

Unfortunately, as far as I was able to find, Doctrine ODM does not provide an equivalent field for MongoDB (or couchDB). Thus this feature request:

Please create a (simplified) DocumentType field that allow to fetch its data from a MongoDB (or CouchDB) Document.

Thank you for your work.

IonBazan commented 1 year ago

There is already a DocumentType form type: https://www.doctrine-project.org/projects/doctrine-mongodb-bundle/en/current/form_validation.html#documenttype

landure commented 1 year ago

Ok thank you, my bad.