activpik/entity-manager-generator-bundle
Symfony2 bundle that generates basic Doctrine Entity Manager classes for your entities and registers them as services (services.xml). Adds save() and getRepository() helpers. Use doctrine:generate:entitymanager Bundle:Entity, then fetch via service id.
services.xml (Symfony 2), while we use YAML/XML/PHP autowiring (Symfony 4+). Migration would require manual refactoring of service definitions.ActivpikManagerBundle vs. our bundle structure).EntityManager injection, which could conflict with custom container extensions (e.g., Symfony’s autoconfigure).doctrine:generate:entitymanager, which may not align with CI/CD pipelines or monorepo setups.| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Symfony 2 → 5/6/7+ Gap | Critical | Fork/replace with a Symfony 4+ compatible generator (e.g., API Platform’s generator). |
| Doctrine ORM Breaking Changes | High | Test with Doctrine 2.10+ before adoption. |
| Service Configuration Drift | Medium | Override services.xml with autowiring YAML post-generation. |
| Maintenance Burden | High | Deprecate in favor of native repositories or modern bundles. |
| Build Tooling Conflicts | Low | Isolate generation in a custom Makefile or Symfony Flex recipe. |
make:entity + service generation.make:entity + custom servicesEntityManager changes.dev-master) → unstable for production.services.xml with YAML).make:crud or custom generators.| Component | Compatibility Risk | Workaround |
|---|---|---|
| Symfony 2 → 5/6/7 | ❌ Breaking | Fork + rewrite CLI command |
| services.xml | ❌ Deprecated | Convert to config/services.yaml |
| Doctrine ORM | ⚠️ Possible Issues | Test with latest ORM version |
| PHP 8.0+ | ❓ Unknown | Add php80-compat polyfills |
| Composer dev-only | ⚠️ Unstable | Pin to a release (if available) |
composer.json for Symfony 5+.services.xml logic with autowiring.doctrine:generate:entitymanager) for Symfony Console.make:entity + services).VideoManager->getRepository() vs. direct repo injection).make:entity).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Doctrine ORM breaking change | ❌ Bundle stops working | Fork + test early |
| Symfony 5+ incompatibility | ❌ CLI command fails | Rewrite command for Symfony Console |
| Team rejects legacy patterns | ⚠️ Low adoption | Deprecate after 3 months |
| No maintenance updates | ❌ Tech debt accumulates | Replace with modern alternative |
Recommendation: Do not adopt. Instead, deprecate and migrate to Symfony’s native tools (make:entity, make:crud) or modern bundles (API Platform, Spatie).
How can I help you explore Laravel packages today?