From bd0d928f35b552f49530c077a64a4ae32ea7560d Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Mon, 16 Dec 2024 19:44:07 +0000 Subject: [PATCH] - Added SearchableInterace as base of EntityInterface --- src/Entity/EntityInterface.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Entity/EntityInterface.php b/src/Entity/EntityInterface.php index 8d57c29..bde318a 100644 --- a/src/Entity/EntityInterface.php +++ b/src/Entity/EntityInterface.php @@ -3,9 +3,13 @@ namespace Ulmus\Entity; 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 entityGetDataset(bool $includeRelations = false, bool $returnSource = false) : array;