Start your All-Access Pass to unlock this challenge
Why doesn’t Doctrine require us to explicitly mark an entity for an update when we modify its properties?
Doctrine caches entity states and only flushes updates at the end of the request cycle.
Doctrine uses SQL triggers to automatically detect changes in the database.
Doctrine automatically detects changes made to the entity and tracks them for update when we call flush().
flush()
No, that's not true! Entities are updated only when persist() is called on them before calling flush().
persist()