From c6591795c4d32dd825d1109291b0b6157c3706db Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 12 Mar 2020 19:35:48 +0100 Subject: [PATCH] fix get signature in mapper --- Models/LocalizationMapper.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Models/LocalizationMapper.php b/Models/LocalizationMapper.php index 8375cee..b7ad963 100644 --- a/Models/LocalizationMapper.php +++ b/Models/LocalizationMapper.php @@ -20,6 +20,7 @@ use phpOMS\Localization\Defaults\CountryMapper; use phpOMS\Localization\Defaults\CurrencyMapper; use phpOMS\Localization\Defaults\LanguageMapper; use phpOMS\Localization\Localization; +use phpOMS\DataStorage\Database\Query\Builder; /** * Localization mapper. @@ -143,15 +144,17 @@ final class LocalizationMapper extends DataMapperAbstract /** * Get object. * - * @param mixed $primaryKey Key - * @param int $relations Load relations - * @param int $depth Relation depth + * @param mixed $primaryKey Key + * @param int $relations Load relations + * @param int $depth Relation depth + * @param string $ref Ref (for getBy and getFor) + * @param Builder $query Query * * @return mixed * * @since 1.0.0 */ - public static function get($primaryKey, int $relations = RelationType::ALL, int $depth = 1) + public static function get($primaryKey, int $relations = RelationType::ALL, int $depth = 1, string $ref = null, Builder $query = null) { return parent::get($primaryKey, $relations, 1); }