mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-18 13:18:43 +00:00
fix get signature in mapper
This commit is contained in:
parent
f0eade1781
commit
c6591795c4
|
|
@ -20,6 +20,7 @@ use phpOMS\Localization\Defaults\CountryMapper;
|
||||||
use phpOMS\Localization\Defaults\CurrencyMapper;
|
use phpOMS\Localization\Defaults\CurrencyMapper;
|
||||||
use phpOMS\Localization\Defaults\LanguageMapper;
|
use phpOMS\Localization\Defaults\LanguageMapper;
|
||||||
use phpOMS\Localization\Localization;
|
use phpOMS\Localization\Localization;
|
||||||
|
use phpOMS\DataStorage\Database\Query\Builder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Localization mapper.
|
* Localization mapper.
|
||||||
|
|
@ -146,12 +147,14 @@ final class LocalizationMapper extends DataMapperAbstract
|
||||||
* @param mixed $primaryKey Key
|
* @param mixed $primaryKey Key
|
||||||
* @param int $relations Load relations
|
* @param int $relations Load relations
|
||||||
* @param int $depth Relation depth
|
* @param int $depth Relation depth
|
||||||
|
* @param string $ref Ref (for getBy and getFor)
|
||||||
|
* @param Builder $query Query
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @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);
|
return parent::get($primaryKey, $relations, 1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user