- What is jorgehernan/odmrelationshipview-bundle used for?
- It is a Symfony bundle for inspecting and visualising relationships between Doctrine MongoDB ODM documents. It renders relationship views for common reference and embed one and many associations. Developers use it to debug and document ODM data models without manually tracing annotations. It is not a Laravel package and does not target Eloquent.
- Can I install jorgehernan/odmrelationshipview-bundle in a Laravel app?
- Not as a native Laravel package. It uses Symfony bundle conventions such as a Bundle suffix, a DI extension, and Resources/config, with no ServiceProvider, facade, config-publish, or Artisan surface. Forcing it into Laravel would require a stack of adapters for the Symfony kernel and Doctrine ODM. The realistic Laravel path is to read the repo for pattern ideas and rebuild the view logic on mongodb/laravel-mongodb.
- How do I install and register jorgehernan/odmrelationshipview-bundle in Symfony?
- Install it with Composer using composer require jorgehernan/odmrelationshipview-bundle, then register the bundle using your Symfony version's bundle registration mechanism. Confirm that Doctrine MongoDB ODM and its Symfony bundle are already configured in the app. Before a spike, read its composer.json for PHP, Symfony, and doctrine/mongodb-odm constraints. Because the package has low maintenance signals, test it on an isolated branch first.
- Does this bundle support Laravel 10 or Laravel 11?
- No. It is a Symfony bundle for Doctrine MongoDB ODM, so Laravel 10 and Laravel 11 support is not applicable. There is no Laravel service provider, facade, publishable config, or Artisan command to integrate it. Laravel version compatibility should not be assumed from the package name or description.
- Which Doctrine MongoDB ODM relationships can it visualize?
- The overview says it covers common association types: reference and embed, one and many. That includes the typical ReferenceOne, ReferenceMany, EmbedOne, and EmbedMany style mappings. The exact rendering behavior depends on the repository code, so verify the mappings you use in a spike. It does not cover Eloquent relationships.
- Is jorgehernan/odmrelationshipview-bundle maintained and production-ready?
- The available assessment is high risk: 2 stars, 0 dependents, a single maintainer, and no visible CI or release cadence. The bundle naming and layout suggest a Symfony 2 or 3-era origin, so PHP 8.2 plus and current doctrine/mongodb-odm compatibility is unverified and plausibly broken. MIT licensing removes legal friction but does not provide upkeep. Treat it as reference code, not a production dependency, unless you fork and own it.
- What are the alternatives to this bundle for Laravel developers?
- There is no direct Laravel-native equivalent described here. For Laravel with MongoDB, use mongodb/laravel-mongodb and build a custom admin view or read-only projection over your model relationships. You can also inspect Doctrine ODM mapping metadata directly in a Symfony service if you are already on that stack. The lowest-risk alternative is to extract the relationship-walking pattern from this repo and implement it in first-party Laravel code.
- How should I evaluate jorgehernan/odmrelationshipview-bundle before adopting it?
- Start by reading composer.json for PHP, symfony/framework-bundle, and doctrine/mongodb-odm constraints and check the last commit date and test coverage. Run a small Symfony plus Doctrine ODM spike that renders reference and embed one and many relationships. If the constraints exclude PHP 8.2 plus or Symfony 6 or 7, treat that as a blocker rather than patching a zero-dependent bundle. Compare the spike cost with reimplementing the view logic in-house.
- What PHP and Symfony versions does jorgehernan/odmrelationshipview-bundle require?
- The provided context does not list exact version constraints. You must read the package composer.json for its PHP constraint, symfony/framework-bundle version, and doctrine/mongodb-odm or doctrine/mongodb-odm-bundle version. Expect stale constraints that may exclude PHP 8.2 plus and Symfony 6 or 7. If your versions are excluded, do not patch around it; close the evaluation or fork deliberately.
- Can I use jorgehernan/odmrelationshipview-bundle with mongodb/laravel-mongodb?
- No. The bundle assumes Doctrine MongoDB ODM document mappings and Symfony bundle wiring, while mongodb/laravel-mongodb is a separate Laravel persistence and query layer with its own relationship semantics. The Doctrine mapping assumptions do not carry over to Eloquent-style Laravel models. Reimplement the relationship view or projection natively in Laravel instead of wrapping this bundle.