mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
PreUpdate #6902
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 @YoukeZhang on GitHub (Jan 13, 2022).
Bug Report
Update releated object failed in PreUpdate
Summary
I try to change attrs of object B when PreUpdate trigger for object A.
Failed in fact.
How to reproduce
public function preUpdate(A $a, PreUpdateEventArgs $args){if ($args->hasChangedField('status')) {$a->getB()->setName('xxx');}}