- New code generation made for CLI
This commit is contained in:
1 parent
ae212a4377
commit
c3e3d6a73a
22 files changed
+1067
-17
No files matched your search
+1
-3
@@ -19,8 +19,6 @@ abstract class Save extends Form implements \Picea\Ui\Method\FormInterface {
|
||||
|
||||
protected array $reflectedProperties;
|
||||
|
||||
protected string $contextClass;
|
||||
|
||||
public function initialize(FormContextInterface $context) : void
|
||||
{
|
||||
if ( ! $this->getEntity()->isLoaded() ) {
|
||||
@@ -74,7 +72,7 @@ abstract class Save extends Form implements \Picea\Ui\Method\FormInterface {
|
||||
$context->pushErrorMessage($ex->getMessage());
|
||||
}
|
||||
|
||||
return $saved;
|
||||
return $saved ?? false;
|
||||
}
|
||||
|
||||
protected function validateContextFields(FormContextInterface $context) : void
|
||||
|
||||
Reference in new issue
Block a user