From e3744496fda4fe4fd5564a883f6f70583a8dfb6e Mon Sep 17 00:00:00 2001 From: breakone Date: Wed, 17 Jul 2024 16:18:30 +0200 Subject: [PATCH] [bugfix] fix definitionId type in ImportDefinition --- src/DataDefinitionsBundle/Model/ImportDefinition.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DataDefinitionsBundle/Model/ImportDefinition.php b/src/DataDefinitionsBundle/Model/ImportDefinition.php index bf898df5..eddf4c80 100644 --- a/src/DataDefinitionsBundle/Model/ImportDefinition.php +++ b/src/DataDefinitionsBundle/Model/ImportDefinition.php @@ -86,7 +86,7 @@ class ImportDefinition extends AbstractDataDefinition implements ImportDefinitio */ public $persister; - public static function getById(int $name) + public static function getById(int|string $name) { return static::getByName((string)$name); } @@ -94,7 +94,7 @@ public static function getById(int $name) public static function getByName(string $id) { $definitionEntry = new ImportDefinition(); - $definitionEntry->setId((int)$id); + $definitionEntry->setId($id); /** * @var \Instride\Bundle\DataDefinitionsBundle\Model\ExportDefinition\Dao|\Instride\Bundle\DataDefinitionsBundle\Model\ImportDefinition\Dao */