- Some work done on entity generation
This commit is contained in:
1 parent
05975089e5
commit
2dc71cd350
12 files changed
+94
-28
No files matched your search
@@ -7,6 +7,7 @@ use Lean\Factory\HttpFactory;
|
||||
use Notes\ObjectReflection;
|
||||
use Notes\Route\Attribute\Method\Route;
|
||||
use Ulmus\Attribute\Obj\Table;
|
||||
use Ulmus\Attribute\Property\ArrayOf;
|
||||
use Ulmus\Attribute\Property\Field;
|
||||
use Ulmus\SearchRequest\Attribute\SearchParameter;
|
||||
use Ulmus\SearchRequest\Attribute\SearchRequestParameter;
|
||||
@@ -34,6 +35,7 @@ class EntityDescriptor
|
||||
$field = $property->getAttribute(Field::class);
|
||||
|
||||
if ($field) {
|
||||
$arrayOf = $property->getAttribute(ArrayOf::class);
|
||||
$types = $property->getTypes();
|
||||
|
||||
if ($property->value ?? false) {
|
||||
@@ -53,6 +55,7 @@ class EntityDescriptor
|
||||
'length' => $field->object->length ?? null,
|
||||
'readonly' => $field->object->readonly,
|
||||
'default' => $default,
|
||||
'arrayOf' => $arrayOf ?? null,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user