- Added a 'select' attribute, WIP on ArrayCollection and ArrayOf also

This commit is contained in:
Dave Mc Nicoll committed 2026-04-24 19:26:02 +00:00
1 parent b394b9348f
commit f938e18572
7 files changed
+56 -34

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ use Ulmus\Entity\JsonUnserializable;
class ArrayOf implements \Ulmus\Entity\EntityValueModifier
{
public function __construct(
protected string $type,
public readonly string $type,
) {}
public function push(mixed $value, ReflectedProperty $property): mixed
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace Ulmus\Attribute\Property\Field;
#[\Attribute(\Attribute::TARGET_PROPERTY)]
class Select {
public function __construct(
public string $sql,
) {}
}