Compare commits
2
Commits
5a5d326d70
...
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fd6889c6f | ||
|
|
bd0d928f35 |
No files matched your search
@@ -16,6 +16,6 @@ class Id extends \Ulmus\Attribute\Property\Field {
|
|||||||
],
|
],
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = true,
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
@@ -72,7 +72,6 @@ class EntityResolver {
|
|||||||
$key = strtolower($item->name);
|
$key = strtolower($item->name);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
case static::KEY_ENTITY_NAME:
|
case static::KEY_ENTITY_NAME:
|
||||||
$key = $item->name;
|
$key = $item->name;
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -3,9 +3,13 @@
|
|||||||
namespace Ulmus\Entity;
|
namespace Ulmus\Entity;
|
||||||
|
|
||||||
use Ulmus\Common\{ EntityField, EntityResolver };
|
use Ulmus\Common\{ EntityField, EntityResolver };
|
||||||
use Ulmus\{ ConnectionAdapter, EntityCollection, QueryBuilder\QueryBuilderInterface, Repository };
|
use Ulmus\{ConnectionAdapter,
|
||||||
|
EntityCollection,
|
||||||
|
QueryBuilder\QueryBuilderInterface,
|
||||||
|
Repository,
|
||||||
|
SearchRequest\SearchableInterface};
|
||||||
|
|
||||||
interface EntityInterface /* extends \JsonSerializable */
|
interface EntityInterface extends SearchableInterface /* extends \JsonSerializable */
|
||||||
{
|
{
|
||||||
public function fromArray(iterable $dataset) : static;
|
public function fromArray(iterable $dataset) : static;
|
||||||
public function entityGetDataset(bool $includeRelations = false, bool $returnSource = false) : array;
|
public function entityGetDataset(bool $includeRelations = false, bool $returnSource = false) : array;
|
||||||
|
|||||||
Reference in new issue
Block a user