mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Please help with SuperClass #5572
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 @andrconstruction on GitHub (Jun 8, 2017).
Originally assigned to: @andrconstruction on GitHub.
https://pastebin.com/KvGn3KZZ
When I try to update entity ( preUpdate event ), in this case all work fine, because updated only useMod field, but if I try to add a new entity, and fired a prePersist event where updated both fields userCreate and userUpdate I got an error, than a new entity was found throug a relashionship Card#userCreate, what may be wrong? doctrine 2
@Ocramius commented on GitHub (Jun 9, 2017):
@andrconstruction a practical code example is needed - I didn't understand what the problem is here...
@andrconstruction commented on GitHub (Jun 9, 2017):
entities here : https://pastebin.com/KvGn3KZZ
and preUpdate prePersist
@andrconstruction commented on GitHub (Jun 9, 2017):
If I will make without a superclass, move userMod and userCreate attributes into the Card Entity all works fine and save
@andrconstruction commented on GitHub (Jun 15, 2017):
Is anybody help?
@andrconstruction commented on GitHub (Nov 7, 2017):
Marcoooo......It is actual at the moment yet
@lcobucci commented on GitHub (Nov 26, 2017):
@andrconstruction it would be 100% easier for us to help you if you could send us a failing test case that reproduces that behaviour, can you please do that?
You can find examples on
388afb46d0/tests/Doctrine/Tests/ORM/Functional/Ticket@razbakov commented on GitHub (Sep 6, 2018):
@andrconstruction which error do you have?
@Ocramius commented on GitHub (Sep 6, 2018):
Closing as incomplete here
@andrconstruction commented on GitHub (Sep 8, 2018):
I figured out in the my problem. Just fired a lot of listeners and each add same object after persist. Remove duplicated functions solve this exception. Thanks to all responders