In my search, I came across this repository, which offers excellent DDD interpretation and a solid starting point.
However, I discovered that in some Repositories classes, the upsertAll method could involve variables that are not defined.
For instance, in the code below, addressEloquent will be undefined if the company does not possess any addresses, which will prevent the execution of any further code.
https://github.com/Orphail/laravel-ddd/blob/3cf4a785b50a541b21e153e54663544803e2450a/src/Agenda/Company/Application/Repositories/Eloquent/AddressRepository.php#L13-L20
I was unable to successfully integrate static analysis tools because of this.
Have you had the opportunity to address this? similar to including conditions or exceptions.
In my search, I came across this repository, which offers excellent DDD interpretation and a solid starting point. However, I discovered that in some
Repositories
classes, theupsertAll
method could involve variables that are not defined. For instance, in the code below,addressEloquent
will be undefined if the company does not possess any addresses, which will prevent the execution of any further code. https://github.com/Orphail/laravel-ddd/blob/3cf4a785b50a541b21e153e54663544803e2450a/src/Agenda/Company/Application/Repositories/Eloquent/AddressRepository.php#L13-L20 I was unable to successfully integrate static analysis tools because of this. Have you had the opportunity to address this? similar to including conditions or exceptions.