LocaleRepository
extends EntityRepository
in package
LocaleRepository
This class was generated by the Doctrine ORM. Add your own custom repository methods below.
Tags
Table of Contents
Methods
- findAll() : array<string|int, mixed>
- Finds all locale entities and orders them by their orderNo
- findBy() : array<string|int, mixed>
- Finds all locales according to the criteria and orders them by their orderNo
- findOneByCode() : null|Locale
- Finds a locale by it's code/short form (e.g de, de-CH, etc.)
Methods
findAll()
Finds all locale entities and orders them by their orderNo
public
findAll() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —The locales
findBy()
Finds all locales according to the criteria and orders them by their orderNo
public
findBy(array<string|int, mixed> $criteria[, array<string|int, mixed> $orderBy = NULL ][, mixed $limit = NULL ][, mixed $offset = NULL ]) : array<string|int, mixed>
Parameters
- $criteria : array<string|int, mixed>
-
The criteria
- $orderBy : array<string|int, mixed> = NULL
- $limit : mixed = NULL
- $offset : mixed = NULL
Tags
Return values
array<string|int, mixed> —The locales
findOneByCode()
Finds a locale by it's code/short form (e.g de, de-CH, etc.)
public
findOneByCode(string $code) : null|Locale
Parameters
- $code : string
-
The locale code/short form
Return values
null|Locale —The locale object