[PR #8118] Do not pass entity name in \Doctrine\ORM\EntityManager::clear call #10820

Closed
opened 2026-01-22 16:08:47 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: No


Hello,

Since passing the entityName parameter in \Doctrine\ORM\EntityManager::clear is deprecated, this call should be also updated to not pass the entityName when calling the method. In my CI/CD it triggers the following error:

Calling Doctrine\ORM\EntityManager::clear() with any arguments to clear specific entities is deprecated and will not be supported in Doctrine ORM 3.0.

Thank you 💪

**Original Pull Request:** https://github.com/doctrine/orm/pull/8118 **State:** closed **Merged:** No --- Hello, Since passing the `entityName` parameter in `\Doctrine\ORM\EntityManager::clear` is deprecated, this call should be also updated to not pass the `entityName` when calling the method. In my CI/CD it triggers the following error: ``` Calling Doctrine\ORM\EntityManager::clear() with any arguments to clear specific entities is deprecated and will not be supported in Doctrine ORM 3.0. ``` Thank you 💪
admin added the pull-request label 2026-01-22 16:08:47 +01:00
admin closed this issue 2026-01-22 16:08:48 +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#10820