- WIP on save and delete forms
This commit is contained in:
1 parent
ad310ffee5
commit
3ce356e1f2
7 files changed
+33
-20
No files matched your search
+2
-8
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Lean\Api\Form;
|
||||
|
||||
use CSLSJ\Lean\Form\Session\EmailContext;
|
||||
use Picea\Ui\Method\{ FormContextInterface, };
|
||||
|
||||
use Ulmus\Attribute\Property\Field;
|
||||
@@ -13,14 +14,7 @@ use Ulmus\Entity\Field\Datetime;
|
||||
abstract class Save implements \Picea\Ui\Method\FormInterface {
|
||||
use FormTrait;
|
||||
|
||||
public function getEntity() : EntityInterface
|
||||
{
|
||||
if (! isset($this->entity)) {
|
||||
throw new \InvalidArgumentException($this->lang("lean.api.form.save.error.entity"));
|
||||
}
|
||||
|
||||
return $this->entity;
|
||||
}
|
||||
protected string $contextClass;
|
||||
|
||||
public function validate(FormContextInterface $context) : bool
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user