php-ddd-example
php-ddd-example copied to clipboard
We should not flush an entity
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