alterphp / easyadmin-mongo-odm-bundle
This bundle provides support for Doctrine Mongo ODM documents in EasyAdmin
Installs: 11 575
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=7.2
- easycorp/easyadmin-bundle: ^2.0
- symfony/uid: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.11
- php-coveralls/php-coveralls: ^2.0
- phpstan/phpstan: ^0.9.2
- phpunit/phpunit: ~5
- psr/log: ~1.0
- symfony/browser-kit: ^4.3|^5.0
- symfony/console: ^4.3|^5.0
- symfony/css-selector: ^4.3|^5.0
- symfony/dom-crawler: ^4.3|^5.0
- symfony/phpunit-bridge: ^4.3|^5.0
- symfony/polyfill: ~1.0
- symfony/thanks: ^1.0
- symfony/twig-bundle: ^4.3|^5.0
- symfony/var-dumper: ^4.3|^5.0
- twig/twig: ^2.11.3|^3.0
This package is auto-updated.
Last update: 2024-11-30 02:02:18 UTC
README
Provides support of Doctrine Mongo ODM documents in EasyAdmin
⚠️ This bundle is under development and remains experimental as long as no v1.0.0 tag is available !
Installation
EasyAdminMongoOdmBundle is installable aside an EasyAdmin configuration. It actually requires it !
composer require alterphp/easyadmin-mongo-odm-bundle:dev-master
Configuration
Simple example :
easy_admin_mongo_odm: documents: AnyDocument: class: App\Document\AnyDocument SomeDocument: class: App\Document\SomeDocument list: sort: createdAt fields: - field1 - field2 - ... # You can define menu for documents into easyadmin configuration easy_admin: design: menu: - { label: AnyDocument, route: easyadmin_mongo_odm, params: { document: AnyDocument } } - { label: SomeDocument, route: easyadmin_mongo_odm, params: { document: SomeDocument } }
Dev notes
- TwigPathPass compiler pass makes @EasyAdminMongoOdm templates to be searched in EasyAdmin bundle if not found in EasyAdminMongoOdm bundle.
TODOs
- Exception listener for production env ?
- QueryBuilder => deal with associations ?
- PropertyConfigPass is not implemented => item
format
per field is not preset - Menu items of type
document
Development tags
USE_MAIN_CONFIG : Some backend configuration used from EasyAdmin bundle (when not specific to ODM).
RESTRICTED_ACTIONS : Marks code lines that deal with actions limitation (new, edit and delete are not available for now).
NO_ASSOCIATION : Disabled association mapping (Mongo ODM has reference
feature, but it's not implemented here yet).
SORT_ONLY_INDEXES : By default, only indexed fields are sortable (for performance reason).