- Added a new ArrayCollection

- Changed Action attribute and transformed it into an abstract class
This commit is contained in:
mcndave committed 2026-07-14 14:44:30 +00:00
1 parent 0443f5a811
commit 9b360c4010
18 files changed
+311 -86

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
<?php
namespace Lean\Api\Attribute\Action;
use Picea\Ui\Method\FormContextInterface;
use Ulmus\Entity\EntityInterface;
#[\Attribute(\Attribute::TARGET_PROPERTY)]
class ValueAppend extends \Lean\Api\Attribute\Action
{
public function action(EntityInterface $entity, string $key, FormContextInterface $context, string $field): ActionTypeEnum
{
dump($entity->$key);
array_push($entity->$key, $context->$field);
return ActionTypeEnum::Setter;
}
}