We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe8318e commit 4823298Copy full SHA for 4823298
src/PHPFUI/ORM/Enum.php
@@ -11,7 +11,7 @@ public function getValue(array $parameters) : mixed
11
{
12
$enum = $parameters[0];
13
14
- return $enum::from($this->currentRecord->offsetGet($this->fieldName));
+ return $enum::from($this->currentRecord->offsetGet($this->fieldName) ?? 0);
15
}
16
17
/**
0 commit comments