Details
Description
If a entity uses default values e.g.
class User {
private $id;
private $name = "unnamed";
}
a reference returned from EntityManager::getPartialReference() will automatically result in a scheduled update for this entity (and all fields with default values), because the EM expects the fields of the entity to be empty. This results in resetting all data inside the database to the default values when doing an $em->flush().
Regards Stefan
Issue Links
- depends on
-
DDC-209
Add the notion of read-only entities
-
Verified, have a fix for this already but its rather tricky with how far i want to push this.