Doctrine merge: DateTime field always updated

后端 未结 2 989
北海茫月
北海茫月 2021-01-02 01:36

I create a new Entity with an existing Id, and I want to update the related database record.

Doctrine merge has been my best friend: recognizes if there

2条回答
  •  长情又很酷
    2021-01-02 02:34

    Apparently it's seems to be a bug in Doctrine which is still not resolved(Reference Github)

    That is expected behavior, objects are compared by reference

提交回复
热议问题