In the previous article, we learned that we need to think in collections. We should not flush inside our repositories.[…]
Read moreCategory: Doctrine
Doctrine Repositories should be collections without flush
More then a year ago I wrote the Repository Pattern article. This provides a good overview of the repository pattern.[…]
Read moreCollection 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 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 moreDoctrine XML Mapping or Annotations?
Annotations are very popular in Symfony. They are easy to write and understand. And most IDE’s have great support for[…]
Read moreUUID over auto increment in PHP
We know that our Domain should not be dependent on our database implementation. Then why do we use auto increment[…]
Read moreThe Value Object and Doctrine
When you are diving deeper in how to construct a good Domain Model. You uncover different concepts which allows you[…]
Read moreRepository Pattern in Symfony
When I first started working with Symfony I kinda struggled with finding out what is exactly the best practice to[…]
Read moreDoctrine 2: Correct way to use a Many-To-Many association
When working in Symfony and using Doctrine 2 ORMĀ you sometimes need to use a many-to-many association between entities. This[…]
Read more