Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Entity Manager Generator Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Accelerates development by eliminating manual boilerplate code for entity managers, reducing engineering effort and time-to-market for CRUD-heavy applications.
  • Developer Productivity: Enables rapid prototyping and scaffolding of manager classes, allowing teams to focus on business logic rather than repetitive infrastructure.
  • Consistency & Standards: Standardizes entity manager patterns across the codebase, reducing technical debt and improving maintainability.
  • Roadmap Alignment: Ideal for projects adopting Symfony 2/Doctrine ORM where entity managers are a core architectural pattern (e.g., content management systems, e-commerce, or data-driven SaaS platforms).
  • Use Cases:
    • Rapidly generating manager classes for new entities in legacy or greenfield projects.
    • Onboarding new developers by providing a clear, auto-generated structure for data access layers.
    • Supporting microservices or modular architectures where entity managers encapsulate domain-specific logic.

When to Consider This Package

  • Adopt When:
    • Your project heavily relies on Symfony 2/Doctrine ORM and requires frequent entity manager generation (e.g., >10 entities).
    • You prioritize developer velocity over customization (e.g., early-stage startups, MVPs, or internal tools).
    • Your bundles use services.xml (current limitation; future releases may support YAML/XML).
    • You lack in-house tools or templates for entity manager scaffolding.
  • Look Elsewhere If:
    • You need custom manager logic out of the box (this generates basic CRUD wrappers only).
    • Your project uses Symfony 3+ or Doctrine ORM alternatives (e.g., Eloquent, Query Builder).
    • You require advanced features like soft deletes, event hooks, or complex repository methods (consider custom templates or libraries like API Platform).
    • Your team prefers dynamic proxies (e.g., generated via Doctrine Extensions or custom code generators).
    • You need multi-entity transactions or cross-bundle manager coordination (this is entity-specific).

How to Pitch It (Stakeholders)

For Executives: "This package automates the creation of entity managers in Symfony 2, cutting development time for data access layers by 30–50%. For example, generating a VideoManager for a new entity takes one command instead of writing 20+ lines of boilerplate. Ideal for projects with repetitive CRUD needs—like our [Product Catalog] or [User Profiles] modules—it reduces technical debt and speeds up feature delivery. The MIT license and active maintenance (via Travis CI) ensure low risk. Let’s pilot it on [Module X] to validate the productivity gain."

For Engineering: *"This bundle generates basic entity managers (e.g., VideoManager) with a single CLI command:

php app/console doctrine:generate:entitymanager Bundle:Entity

Pros:

  • Saves time on scaffolding; focus on business logic.
  • Enforces consistency across managers (e.g., getRepository(), em injection).
  • Works seamlessly with Symfony’s DI container (inject via $this->get('activpik_manager.video_manager')). Cons:
  • Limited to services.xml bundles (track #1 for updates).
  • No built-in support for advanced methods (e.g., bulk updates). Recommendation: Use for new entities in Symfony 2 projects. Pair with custom templates if you need extended functionality. Let’s test it on [Entity Y] first."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle
dmstr/api-platform-utils-bundle
dmstr/api-configuration-bundle
chrisdev/ux-components
baks-dev/finances
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle