tseho/doctrine-assigned-identity
Doctrine ORM extension that lets entities use application-assigned identifiers—UUIDs, natural keys, or custom IDs—instead of database auto-increment, while keeping Doctrine's identity map and UnitOfWork working correctly.
flush().Consider it when:
Look elsewhere when:
Executive summary: This is a very small testing utility for Doctrine-based PHP applications. It lets test fixtures assign known entity IDs before saving, which can make integration tests simpler and assertions more deterministic. The business value is limited to developer productivity and test reliability—not customer-facing functionality.
Recommendation: Treat it as a low-risk, low-investment test helper, not a strategic dependency. Because adoption is minimal, engineering should evaluate whether an internal helper can deliver the same behavior with less supply-chain and maintenance risk. If adopted, pin the version, isolate it to test code, and document an exit path.
For engineering: It solves a narrow Doctrine testing problem: known IDs before persistence. Validate it against your Doctrine version and unit-of-work patterns, confirm it does not mask production identity-generation behavior, and prefer vendoring or an internal utility if the implementation is trivial. Do not position it as a Laravel-wide testing standard.
How can I help you explore Laravel packages today?