You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!$allBlocksValidate) {
// Just in case the blocks weren't already cached$value->setCachedResult($blocks);
}
->
if (!$allBlocksValidate && $valueinstanceof ElementQueryInterface) {
// Just in case the blocks weren't already cached$value->setCachedResult($blocks);
}
Steps to reproduce
use eager loading
save the matrix block
Expected behavior
Craft CMS version
4.4.5
PHP version
8.2.0
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered:
What happened?
Description
$value
in your relation / Matrix fields can always be instance ofCollection
instead ofElementQueryInterface
https://github.com/craftcms/cms/blob/develop/src/fields/Matrix.php#L822-L825
->
Steps to reproduce
Expected behavior
Craft CMS version
4.4.5
PHP version
8.2.0
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: