- Added a 'select' attribute, WIP on ArrayCollection and ArrayOf also
This commit is contained in:
1 parent
b394b9348f
commit
f938e18572
7 files changed
+56
-34
No files matched your search
@@ -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
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Attribute\Property\Field;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
||||
class Select {
|
||||
public function __construct(
|
||||
public string $sql,
|
||||
) {}
|
||||
}
|
||||
Reference in new issue
Block a user