[PR #6989] fix Catchable Fatal Error: Argument 3 passed to Doctrine\ORM\Event\Pr… #10253

Open
opened 2026-01-22 16:06:57 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/6989

State: closed
Merged: No


Hi, guys
When I want to remove entity, that has few relations, I get this error:

Catchable Fatal Error: Argument 3 passed to Doctrine\ORM\Event\PreUpdateEventArgs::__construct() must be of the type array, null given, called in /var/www/akela/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 1065 and defined

After debugging and understanding what's going on, I found a solution

Hope, you can help me to fix this issue

**Original Pull Request:** https://github.com/doctrine/orm/pull/6989 **State:** closed **Merged:** No --- Hi, guys When I want to remove entity, that has few relations, I get this error: Catchable Fatal Error: Argument 3 passed to Doctrine\ORM\Event\PreUpdateEventArgs::__construct() must be of the type array, null given, called in /var/www/akela/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 1065 and defined After debugging and understanding what's going on, I found a solution Hope, you can help me to fix this issue
admin added the pull-request label 2026-01-22 16:06:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10253