We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 906c03e commit 375fcb0Copy full SHA for 375fcb0
1 file changed
src/Database/Document.php
@@ -177,7 +177,13 @@ public function getUpdatedAt(): ?string
177
*/
178
public function getTenant(): int|string|null
179
{
180
- return $this->getAttribute('$tenant');
+ $tenant = $this->getAttribute('$tenant');
181
+
182
+ if (\is_numeric($tenant)) {
183
+ return (int) $tenant;
184
+ }
185
186
+ return $tenant;
187
}
188
189
/**
0 commit comments