orm icon indicating copy to clipboard operation
orm copied to clipboard

Detect DBAL's number type

Open derrabus opened this issue 11 months ago • 1 comments

Leverages doctrine/dbal#6686.

derrabus avatar Jan 06 '25 19:01 derrabus

How does BCMath\Number behaves regarding the change tracking in the ORM ? The discussion in DBAL says it should be compared with ==, and I don't think this is what the ORM does.

stof avatar Mar 24 '25 17:03 stof

We kind of have the same problem here as we already do with DateTime objects. If you don't modify a property that stores a number, it's fine. But if you set that property to a new number object, it will be detected as changed even if the new number object is equal to the old one. But I don't think we need to solve this issue in this PR.

derrabus avatar Apr 03 '25 14:04 derrabus