idct/sonata-admin-mongodb-bundle

Symfony Sonata / Integrate Doctrine MongoDB ODM into the SonataAdminBundle

Maintainers

Package info

github.com/ideaconnect/sonata-admin-mongodb-bundle

Type:symfony-bundle

pkg:composer/idct/sonata-admin-mongodb-bundle

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

5.0.0 2026-05-15 10:46 UTC

This package is auto-updated.

Last update: 2026-05-15 10:47:26 UTC


README

Integrate Doctrine MongoDB ODM into the Sonata Admin Bundle.

Started as a fork of sonata-project/doctrine-mongodb-admin-bundle, modernised for PHP 8.4+, Symfony 7.3 / 7.4 / 8.0, doctrine/persistence 3 & 4, doctrine/mongodb-odm 2.6+ and doctrine/mongodb-odm-bundle 5.x.

⚠️ Heads up: this fork will diverge from upstream

This package is not a drop-in replacement for sonata-project/doctrine-mongodb-admin-bundle and will not stay backwards-compatible with it.

The 5.x line already breaks BC in places upstream has not (private ModelManager::getDocumentManager, immutable-ish ProxyQuery, dropped __call magic, stricter type guards in ModelFilter, etc.), and future releases will keep diverging — extending the public API, replacing parts that aren't worth keeping, and dropping things upstream still ships. If you need an exact upstream-compatible integration, stay on sonata-project/doctrine-mongodb-admin-bundle. If you want the modernized base and don't mind moving with us, you're in the right place.

Branch Github Actions Code Coverage
5.x Test Coverage Status

Installation

composer require idct/sonata-admin-mongodb-bundle

Documentation

Upstream Sonata documentation still applies for the public API and configuration shape: docs.sonata-project.org/projects/SonataDoctrineMongoDBAdminBundle.

Fork-specific changes (modernisation, performance and correctness fixes, BC notes for the 5.x cut) are tracked in BEST_VERSION.md and CHANGELOG.md.

Running the tests locally

The test suite needs MongoDB and (for the Panther functional tests) a Firefox WebDriver. Both are wired up via docker-compose.yml:

docker compose up -d
PANTHER_SELENIUM_HOST=http://127.0.0.1:4444/wd/hub make test

Selenium also exposes noVNC at http://127.0.0.1:7900 (password secret) if you want to watch the browser drive the suite.

Support

For bugs or feature ideas in this fork, please open an issue on the fork's GitHub repository.

For questions about Sonata Admin in general, the upstream StackOverflow tag remains the best place.

License

This package is available under the MIT license. The original copyright by Thomas Rabaix and every upstream contributor is preserved; see composer.json for the complete author roster.