Beta version

class TranslationRepository extends EntityRepository

[email protected]}

Methods

integer
countBy(Criteria|mixed|array $criteria)

Count entities using a Criteria object or a simple filter array.

array|Paginator
searchBy(string $pattern, array $criteria = array(), array $orders = array(), integer $limit = null, integer $offset = null)

No description

int
countSearchBy(string $pattern, array $criteria = array())

No description

findDefault()

Get single default translation.

ArrayCollection
findAllAvailable()

Get all available translations.

boolean
exists(string $locale)

No description

array
getAvailableLocales()

Get all available locales.

array
getAvailableOverrideLocales()

Get all available locales.

ArrayCollection
findByLocaleAndAvailable($locale)

Get all available translations by locale.

ArrayCollection
findByOverrideLocaleAndAvailable($overrideLocale)

Get all available translations by overrideLocale.

findOneByLocaleAndAvailable($locale)

Get one available translation by locale.

findOneByOverrideLocaleAndAvailable($overrideLocale)

Get one available translation by overrideLocale.

Details

in EntityRepository at line 345
integer countBy(Criteria|mixed|array $criteria)

Count entities using a Criteria object or a simple filter array.

Parameters

Criteria|mixed|array $criteria or array

Return Value

integer

in EntityRepository at line 440
array|Paginator searchBy(string $pattern, array $criteria = array(), array $orders = array(), integer $limit = null, integer $offset = null)

Parameters

string $pattern Search pattern
array $criteria Additionnal criteria
array $orders
integer $limit
integer $offset

Return Value

array|Paginator

in EntityRepository at line 487
int countSearchBy(string $pattern, array $criteria = array())

Parameters

string $pattern Search pattern
array $criteria Additionnal criteria

Return Value

int

at line 45
Translation findDefault()

Get single default translation.

Return Value

Translation

at line 67
ArrayCollection findAllAvailable()

Get all available translations.

Return Value

ArrayCollection

at line 88
boolean exists(string $locale)

Parameters

string $locale

Return Value

boolean

at line 109
array getAvailableLocales()

Get all available locales.

Return Value

array

at line 129
array getAvailableOverrideLocales()

Get all available locales.

Return Value

array

at line 153
ArrayCollection findByLocaleAndAvailable($locale)

Get all available translations by locale.

Parameters

$locale

Return Value

ArrayCollection

at line 177
ArrayCollection findByOverrideLocaleAndAvailable($overrideLocale)

Get all available translations by overrideLocale.

Parameters

$overrideLocale

Return Value

ArrayCollection

at line 202
Translation findOneByLocaleAndAvailable($locale)

Get one available translation by locale.

Parameters

$locale

Return Value

Translation

Exceptions

NonUniqueResultException

at line 228
Translation findOneByOverrideLocaleAndAvailable($overrideLocale)

Get one available translation by overrideLocale.

Parameters

$overrideLocale

Return Value

Translation

Exceptions

NonUniqueResultException