b2pweb/bdf-prime-persistence
EntityManager events, custom repositories).config/database.php or service providers.EntityListener, NativeQuery) that Prime lacks?find(), save(), complex joins).EntityListener) to Prime-compatible alternatives.prePersist, postLoad)StoDoctrineExtensions)| Step | Task | Dependencies |
|---|---|---|
| 1 | Install b2pweb/bdf-prime-persistence + Doctrine |
PHP, Composer |
| 2 | Configure EntityManager to use the adapter |
Doctrine config |
| 3 | Test basic CRUD operations | Prime ORM setup |
| 4 | Validate complex queries (joins, aggregations) | App-specific queries |
| 5 | Replace Doctrine-specific logic (e.g., listeners) | Adapter limitations |
| 6 | Monitor performance in staging | Load testing |
| Risk | Impact | Mitigation |
|---|---|---|
| Adapter fails to translate a Doctrine query | App crashes or silent data corruption | Write fallback logic (e.g., retry with native Prime) |
| Prime ORM lacks a Doctrine feature | Missing functionality (e.g., events) | Implement custom workarounds |
| Doctrine + Prime config conflicts | Database connection errors | Isolate configurations (e.g., separate EntityManager instances) |
| Unmaintained package breaks | No updates, security risks | Fork and maintain internally |
How can I help you explore Laravel packages today?