From b0c4582f3fdaddb665904feda27ab8798bec8b5a Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 9 Jan 2021 10:56:02 +0100 Subject: [PATCH] Used EntitySpecificationRepository as default entity repository --- composer.json | 2 +- config/autoload/entity-manager.global.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3619f89f..17928a2f 100644 --- a/composer.json +++ b/composer.json @@ -47,7 +47,7 @@ "predis/predis": "^1.1", "pugx/shortid-php": "^0.7", "ramsey/uuid": "^3.9", - "shlinkio/shlink-common": "dev-main#2963395 as 3.4", + "shlinkio/shlink-common": "dev-main#1311861 as 3.4", "shlinkio/shlink-config": "^1.0", "shlinkio/shlink-event-dispatcher": "^1.6", "shlinkio/shlink-importer": "^2.1", diff --git a/config/autoload/entity-manager.global.php b/config/autoload/entity-manager.global.php index c08f66f2..639df7ec 100644 --- a/config/autoload/entity-manager.global.php +++ b/config/autoload/entity-manager.global.php @@ -4,12 +4,15 @@ declare(strict_types=1); namespace Shlinkio\Shlink\Common; +use Happyr\DoctrineSpecification\EntitySpecificationRepository; + return [ 'entity_manager' => [ 'orm' => [ 'proxies_dir' => 'data/proxies', 'load_mappings_using_functional_style' => true, + 'default_repository_classname' => EntitySpecificationRepository::class, ], 'connection' => [ 'user' => '',