Filter sequence to int because any models skip rule checks

This commit is contained in:
Jake Barnby 2025-07-29 16:53:13 +12:00
parent 5924434e1d
commit 2529d64791
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -79,6 +79,7 @@ class Document extends Any
{
$document->removeAttribute('$collection');
$document->removeAttribute('$tenant');
$document->setAttribute('$sequence', (int)$document->getAttribute('$sequence', 0));
foreach ($document->getAttributes() as $attribute) {
if (\is_array($attribute)) {