Weave 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

Module Doctrine2 Laravel Package

codeception/module-doctrine2

Codeception module for Doctrine2 that gives tests direct access to the EntityManager and DBAL connection, automatic database cleanup between tests, transaction rollbacks, and handy assertions for entities and queries.

Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for test infrastructure. This is a small, MIT-licensed, Codeception-ecosystem module that replaces hand-rolled test-database bootstrap code (entity manager wiring, schema/transaction handling, fixture loading). The decision is rarely "build this ourselves"; it's "adopt a maintained module vs. accumulate custom test glue."
  • Standardizing the QA stack. Choosing Codeception + this module is a deliberate test-framework decision that affects hiring, CI design, and how easily engineers write DB-backed acceptance/functional tests. It belongs in the same conversation as choosing PHPUnit vs. Pest vs. Codeception.
  • Release-confidence investment. The module enables declarative assertions against Doctrine repositories (seeInRepository, grabFromRepository, haveInRepository) and per-test cleanup, which raises the ceiling on regression coverage for data-heavy flows — a quality-gate decision, not a shipping-feature decision.
  • Roadmap input for platform/enterprise products. If the product runs Doctrine ORM (common in larger or legacy-modernized Laravel/Symfony-style codebases), this package is a low-cost enabler for expanding automated coverage before a major release or migration.
  • Risk budgeting. At 41 stars and a 2024-04 release, it is a low-cost, low-blast-radius dependency. Adoption is reversible; the PM decision is whether the testing-velocity gain justifies another dependency in the supply chain.

When to Consider This Package

  • Consider it when: the codebase uses Doctrine ORM/DBAL (not Eloquent), and the team uses — or is evaluating — Codeception for functional/acceptance tests. The value is highest when tests need to assert on persisted state, load fixtures, or isolate DB state between tests.
  • Consider it when: you want to reduce bespoke test bootstrap code and standardize how engineers write DB-backed tests across teams.
  • Consider it when: the product is a Laravel app that has adopted Doctrine via a third-party ORM integration (verify this — stock Laravel is Eloquent-first).
  • Look elsewhere when: the stack is Eloquent-based (use Laravel's own testing helpers and database transaction traits), when the team is committed to PHPUnit/Pest without Codeception, or when no Doctrine persistence layer exists.
  • Look elsewhere when: you require active feature development or vendor support — the release cadence and star count suggest a stable-but-quiet utility, not a strategic platform bet. Treat it as a convenience dependency, not a foundation.
  • Watch for: compatibility with your Doctrine and Codeception major versions, and whether the module covers your database driver and cleanup strategy.

How to Pitch It (Stakeholders)

For executives: This is a small, free (MIT) testing utility that lets our engineers write reliable database-backed automated tests with far less custom plumbing. It lowers the cost of building regression coverage, which directly protects release quality, and it carries minimal risk — it's a narrow, reversible dependency maintained within the Codeception ecosystem, not a platform commitment.

For engineering: The module handles Doctrine entity-manager lifecycle, fixture loading, and database isolation between Codeception tests, and exposes expressive assertions against repositories. It removes the need to maintain custom test bootstrap code, reduces flaky DB test setup, and standardizes how we write persistence tests. Main caveat: it only applies if we're on Doctrine rather than Eloquent, and we should pin versions and confirm driver coverage before rollout.

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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect