- Added ArrayOf attributes and DatasetFill/DatasetPull events. ArrayCollection is also working with ArrayOf attributes
This commit is contained in:
1 parent
fd5d31fa17
commit
009e30eb7e
21 files changed
+322
-43
No files matched your search
@@ -115,6 +115,13 @@ class EntityResolver {
|
||||
}
|
||||
}
|
||||
|
||||
public function getPropertyHavingAttribute(array|object|string $type) : array
|
||||
{
|
||||
return array_filter(array_map(
|
||||
fn($e) => $e->getAttributes(is_object($type) ? $type::class : $type), $this->reflectedClass->getProperties(true)
|
||||
));
|
||||
}
|
||||
|
||||
public function getPropertyEntityType(string $name) : false|string
|
||||
{
|
||||
return $this->reflectedClass->getProperties(true)[$name]->getTypes()[0]->type ?? false;
|
||||
|
||||
+1
-1
@@ -84,7 +84,7 @@ abstract class Sql {
|
||||
return $value;
|
||||
}
|
||||
|
||||
public static function collate(string $name) : string
|
||||
public static function collate(string $name) : object
|
||||
{
|
||||
if ( ! preg_match('/^[a-z0-9$_]+$/i',$name) ) {
|
||||
throw new \InvalidArgumentException(sprintf("Given identifier '%s' should contains supported characters in function name (a-Z, 0-9, $ and _)", $name));
|
||||
|
||||
Reference in new issue
Block a user