PHP Class Sylius\Bundle\ResourceBundle\Doctrine\ODM\MongoDB\TranslatableRepository

Author: Ivannis Suárez Jérez ([email protected])
Inheritance: extends Sylius\Bundle\ResourceBundle\Doctrine\ODM\MongoDB\DocumentRepository, implements Sylius\Component\Resource\Repository\TranslatableRepositoryInterface
Datei anzeigen Open project: sylius/sylius

Protected Properties

Property Type Description
$localeProvider Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface
$translatableFields array

Public Methods

Method Description
setLocaleProvider ( Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface $localeProvider )
setTranslatableFields ( array $translatableFields )

Protected Methods

Method Description
applyCriteria ( Builder $queryBuilder, array $criteria = null )
applySorting ( Builder $queryBuilder, array $sorting = null )
getPropertyName ( string $name ) : string

Method Details

applyCriteria() protected method

protected applyCriteria ( Builder $queryBuilder, array $criteria = null )
$queryBuilder Doctrine\MongoDB\Query\Builder
$criteria array

applySorting() protected method

protected applySorting ( Builder $queryBuilder, array $sorting = null )
$queryBuilder Doctrine\MongoDB\Query\Builder
$sorting array

getPropertyName() protected method

protected getPropertyName ( string $name ) : string
$name string
return string

setLocaleProvider() public method

public setLocaleProvider ( Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface $localeProvider )
$localeProvider Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface

setTranslatableFields() public method

public setTranslatableFields ( array $translatableFields )
$translatableFields array

Property Details

$localeProvider protected_oe property

protected TranslationLocaleProviderInterface,Sylius\Component\Resource\Translation\Provider $localeProvider
return Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface

$translatableFields protected_oe property

protected array $translatableFields
return array