Whenever we create an API. We expect that one request is done in one step. This then means that one[…]
Read moreTag: Doctrine
Hydrating Query Objects with DTO’s
In the previous article, we learned how to use Query Objects. But simply returning entities or arrays of entities might[…]
Read moreQuery Object Pattern in Symfony
The Query Object Pattern is a pattern that can be used together with the Repository pattern. A query object is[…]
Read moreAbstracting the Doctrine ORM flush
In the previous article, we learned that we need to think in collections. We should not flush inside our repositories.[…]
Read moreDoctrine 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 moreCustom Repository User Provider in Symfony
Last week we had a basic overview of OAuth 2. Before we can start implementing an OAuth 2 server or any[…]
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 moreSymfony Unit Testing – With a Database
When you are writing tests, you will want to test code that interacts with a database. You can do 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 more