Skip to content
Think To Code

Think To Code

Mastering best practices, patterns and architectures on the web

Tag: Doctrine

One request, one Doctrine transaction

November 14, 2019 Jeffrey Verreckt PHP

Whenever we create an API. We expect that one request is done in one step. This then means that one[…]

Read more

Hydrating Query Objects with DTO’s

September 12, 2019 Jeffrey Verreckt PHP, Symfony

In the previous article, we learned how to use Query Objects. But simply returning entities or arrays of entities might[…]

Read more

Query Object Pattern in Symfony

August 29, 2019 Jeffrey Verreckt Design Patterns, PHP, Symfony

The Query Object Pattern is a pattern that can be used together with the Repository pattern. A query object is[…]

Read more

Abstracting the Doctrine ORM flush

March 28, 2019 Jeffrey Verreckt Doctrine, PHP, Symfony

In the previous article, we learned that we need to think in collections. We should not flush inside our repositories.[…]

Read more

Doctrine Repositories should be collections without flush

January 24, 2019 Jeffrey Verreckt Doctrine, PHP, Symfony

More then a year ago I wrote the Repository Pattern article. This provides a good overview of the repository pattern.[…]

Read more

Custom Repository User Provider in Symfony

October 25, 2018 Jeffrey Verreckt PHP, Symfony

Last week we had a basic overview of OAuth 2. Before we can start implementing an OAuth 2 server or any[…]

Read more

Collection of Value Objects with Doctrine

September 20, 2018 Jeffrey Verreckt Doctrine, PHP, Symfony

Over the last year, I have been working more and more with value objects in my applications. Value objects are[…]

Read more

Domain Events with Symfony and Doctrine

August 9, 2018 Jeffrey Verreckt Doctrine, PHP, Symfony

Domain Events are important for any application that puts the business domain in the centre. A common requirement within a[…]

Read more

Symfony Unit Testing – With a Database

June 14, 2018 Jeffrey Verreckt PHP, Symfony, Testing

When you are writing tests, you will want to test code that interacts with a database. You can do a[…]

Read more

Doctrine XML Mapping or Annotations?

April 19, 2018 Jeffrey Verreckt Doctrine, PHP, Symfony

Annotations are very popular in Symfony. They are easy to write and understand. And most IDE’s have great support for[…]

Read more

Posts navigation

1 2 Next Posts»

Follow @JeffreyVerreckt

Recent Posts

  • Domain-Driven PHP Architecture
  • One request, one Doctrine transaction
  • Hydrating Query Objects with DTO’s
  • Query Object Pattern in Symfony
  • Abstracting the Doctrine ORM flush

Archives

  • January 2022
  • November 2019
  • September 2019
  • August 2019
  • March 2019
  • January 2019
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • August 2017

Categories

  • Best Practices
  • Clean Code
  • Design Patterns
  • Doctrine
  • JavaScript
  • OOP
  • PHP
  • Software Architecture
  • Software Principles
  • Symfony
  • TDD
  • Testing
WordPress Theme: Poseidon by ThemeZee.