specifically about that one example, I disagree btw because:
- it makes the identifier a detail that is modifiable from outside the entity
- the entity is in an invalid state during refresh
In cases like that, I prefer using hacks ( [instantiator](https://github.com/doctrine/instantiator) ) and build the object without using its API at all