alexandrebulete/ddd-doctrine-bridge
Repository interfaces).spatie/laravel-ddd) that avoid Doctrine’s complexity?doctrine/doctrine-bundle or standalone).DoctrineAggregateRepository vs. EloquentModel).User → CustomerAggregate).Order domain) to test the bridge.doctrine/orm and configure via config/packages/doctrine.yaml (Symfony-style).AppServiceProvider).Model with Doctrine entities and implement AggregateRoot/Repository interfaces from the bridge.// Before (Eloquent)
class User extends Model {}
// After (DDD + Doctrine)
class Customer implements AggregateRoot {
// ...
}
class CustomerRepository implements DoctrineRepository {
public function __construct(private EntityManager $em) {}
}
doctrine:schema:update).^2.10).orm.xml, annotations) adds overhead compared to Eloquent’s fluent API.doctrine/orm, doctrine/doctrine-bundle) may introduce version conflicts.findById with joins).prePersist) may conflict with Laravel’s model events.find() vs. getReference()).How can I help you explore Laravel packages today?