Skip to content

Commit 280432a

Browse files
abnegateclaude
andcommitted
fix: skip Sequence validation for $tenant attribute
Tenant can be int or string depending on the adapter, so it should not go through Sequence validation which is string-only. Tenant is a framework-controlled internal attribute set via setTenant(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7e84398 commit 280432a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Database/Validator/Structure.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ protected function checkForInvalidAttributeValues(array $structure, array $keys)
340340

341341
switch ($type) {
342342
case Database::VAR_ID:
343+
if ($attribute['$id'] === '$tenant') {
344+
break;
345+
}
343346
$validators[] = new Sequence($this->idAttributeType, $attribute['$id'] === '$sequence');
344347
break;
345348

0 commit comments

Comments
 (0)