php-ddd-example
php-ddd-example copied to clipboard
🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 6
This change comes from a Codely TV exercise in the Git course
During the execution of `make build` the following error appears. ``` Building backoffice_backend_php [+] Building 15.3s (13/17) => [internal] load build definition from Dockerfile 0.4s => => transferring dockerfile: 1.04kB...
Why course and video application services behave differently in `Mooc` context? `CourseFinder` (`\CodelyTv\Mooc\Courses\Application\Find\CourseFinder`) has the dependency`CourseRepository` , and the class invoke method uses it directly. On the other hand, `VideoFinder`...
Making task in course codelytv
Primera actividad en curso CQRS, crear un command para modificar descripción/título de un vídeo.
According to Ocramius in [this post](https://github.com/webdevilopers/php-ddd/issues/13#issuecomment-299641329), we should never flush an entity, like in [DoctrineRepository.php](https://github.com/CodelyTV/php-ddd-example/blob/6da760a2c904898a62a5cc1ee3ce7a3cee3eb0b2/src/Shared/Infrastructure/Persistence/Doctrine/DoctrineRepository.php). This param [will be deprecated in Doctrine 3.0](https://github.com/doctrine/orm/blob/old-prototype-3.x/UPGRADE.md#bc-break-removed-entitymanagerflushentity-and-entitymanagerflushentities). Related issues in Doctrine: - https://github.com/doctrine/orm/issues/6118 -...
https://github.com/CodelyTV/php-ddd-example/commit/f7e7bed9c0596e4a5587559604c8731bc69a19cb broke some actions If we use `request->getAlpha` we loss some chars like dash, space, numbers, etc