Child Entities should not have its own lifecycle. You should not blindly create entities without clearly thinking about its relationships.[…]
Read moreTag: Symfony 4
Collection of Value Objects with Doctrine
Over the last year, I have been working more and more with value objects in my applications. Value objects are[…]
Read moreSymfony Messenger: Queues and Workers
In the previous article, we were introduced to the Symfony Messenger component. We created a simple implementation of a message[…]
Read moreSymfony Messenger: Messages and Handlers
Symfony introduced the Messenger component in 4.1. There are bundles like prooph and simplebus that can be used for the same[…]
Read moreNamed Constructors for Domain Objects
Constructing objects is something we do all the time. But are we doing it correctly? Is there maybe a better[…]
Read moreOnion Architecture – Skeleton Example
In the previous blog post, we learned about the Onion Architecture. Now let’s take a look at how we can[…]
Read moreDomain Events with Symfony and Doctrine
Domain Events are important for any application that puts the business domain in the centre. A common requirement within a[…]
Read moreDecoupling from Symfony Event Dispatcher
We all know the Symfony Event Dispatcher. But just using the event dispatcher makes us coupled to the framework. Our[…]
Read moreSymfony Mailer Service
Whenever you work with big and complex applications. It might be a good idea to abstract pure infrastructure-focused tasks outside[…]
Read more