We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39c2350 commit 72e350aCopy full SHA for 72e350a
doctrine/events.rst
@@ -266,8 +266,9 @@ a Doctrine entity listener in your application:
266
// ...
267
use App\Entity\User;
268
use Doctrine\Bundle\DoctrineBundle\Attribute\AsEntityListener;
269
+ use Doctrine\ORM\Events;
270
- #[AsEntityListener(event: 'postUpdate', method: 'postUpdate', entity: User::class)]
271
+ #[AsEntityListener(event: Events::postUpdate, method: 'postUpdate', entity: User::class)]
272
class UserChangedNotifier
273
{
274
0 commit comments