php-ddd-example icon indicating copy to clipboard operation
php-ddd-example copied to clipboard

We should not flush an entity

Open Kwadz opened this issue 4 years ago • 0 comments

According to Ocramius in this post, we should never flush an entity, like in DoctrineRepository.php. This param will be deprecated in Doctrine 3.0.

Related issues in Doctrine:

  • https://github.com/doctrine/orm/issues/6118
  • https://github.com/doctrine/orm/issues/8459

Kwadz avatar Oct 06 '21 14:10 Kwadz