class BrandTranslationManager

Class BrandTranslationManager

Properties

protected BrandTranslationRepository $repository
protected BrandEventContainer $eventContainer

Methods

__construct(BrandTranslationRepository $repository, BrandEventContainer $eventContainer)

No description

mixed|null
findSingleTranslation(int $productId, string $locale)

Find single translation for product id and locale

save(BrandTranslation $entity)

Persist entity to database

bool
saveMultiple(array $entities)

Persist multiple entities

Details

at line 35
__construct(BrandTranslationRepository $repository, BrandEventContainer $eventContainer)

Parameters

BrandTranslationRepository $repository
BrandEventContainer $eventContainer

at line 48
mixed|null findSingleTranslation(int $productId, string $locale)

Find single translation for product id and locale

Parameters

int $productId
string $locale

Return Value

mixed|null

at line 61
BrandTranslation save(BrandTranslation $entity)

Persist entity to database

Parameters

BrandTranslation $entity

Return Value

BrandTranslation | null

Exceptions

Exception

at line 72
bool saveMultiple(array $entities)

Persist multiple entities

Parameters

array $entities

Return Value

bool