[PR #11768] Check hint value before considering instance read-only #13249

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

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

State: closed
Merged: Yes


Documentation suggests that HINT_READ_ONLY accept a boolean value.
https://www.doctrine-project.org/projects/doctrine-orm/en/3.3/reference/improving-performance.html#read-only-entities

But UnitOfWork only check if hint is set to register new Entity instance as read-only.

Using the value parameter will code more consistent to documentation.

**Original Pull Request:** https://github.com/doctrine/orm/pull/11768 **State:** closed **Merged:** Yes --- Documentation suggests that HINT_READ_ONLY accept a boolean value. https://www.doctrine-project.org/projects/doctrine-orm/en/3.3/reference/improving-performance.html#read-only-entities But UnitOfWork only check if hint is set to register new Entity instance as read-only. Using the value parameter will code more consistent to documentation.
admin added the pull-request label 2026-01-22 16:16:38 +01:00
admin closed this issue 2026-01-22 16:16:38 +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#13249