mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1433] Check for non-cacheable entities on metadata level, not at runtime #9495
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?
Original Pull Request: https://github.com/doctrine/orm/pull/1433
State: closed
Merged: Yes
This PR moves the check for non-cacheable entities from "runtime" to metadata definition.
If an entity has an association key as part of its PK, and this association key is not configured to be stored into SLC, an exception it thrown.
The previous approach was checking this constraint at "runtime" (right before saving the value), this PR moves this check at metadata level into (
_validateAndCompleteAssociationMappingmethod).testQueryNotCacheableAssociationExceptionther has been removed since this constraint is checked at metadata class loading time