mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
getEntityChangeSet method of UnitOfWork doesn't work on an array of 0 #6486
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Adm94 on GitHub (Jun 10, 2020).
Bug Report
Summary
I use getEntityChangeSet to get changes in a OnFlush Listener.
My data is stored in a mysql longtext as DC2Type:array (i:0;)
When I update the value from 1 to 0. I do get an array of 'old/new' value.
But not when I update from 0 to 1
Current behavior
When I update the value to 1, getEntityChangeSet method give me an empty array as value.
How to reproduce
Update an array from an int 0 value
Expected behavior
Is this a normal behavior ?