Свойство | Тип | Описание | |
---|---|---|---|
$productAssociationFactory | Sylius\Component\Resource\Factory\FactoryInterface | ||
$productAssociationTypeRepository | Sylius\Component\Resource\Repository\RepositoryInterface | ||
$productRepository | Sylius\Component\Product\Repository\ProductRepositoryInterface |
Метод | Описание | |
---|---|---|
__construct ( Sylius\Component\Resource\Factory\FactoryInterface $productAssociationFactory, Sylius\Component\Product\Repository\ProductRepositoryInterface $productRepository, Sylius\Component\Resource\Repository\RepositoryInterface $productAssociationTypeRepository ) | ||
reverseTransform ( $values ) | ||
transform ( $productAssociations ) |
Метод | Описание | |
---|---|---|
getIdsAsStringFromProducts ( Doctrine\Common\Collections\Collection $products ) : string | ||
getProductAssociationByTypeCode ( string $productAssociationTypeCode ) : Sylius\Component\Product\Model\ProductAssociationInterface | ||
setAssociatedProductsByProductIds ( Sylius\Component\Product\Model\ProductAssociationInterface $productAssociation, string $productIds ) | ||
setProductAssociations ( Doctrine\Common\Collections\Collection | null $productAssociations ) |
public __construct ( Sylius\Component\Resource\Factory\FactoryInterface $productAssociationFactory, Sylius\Component\Product\Repository\ProductRepositoryInterface $productRepository, Sylius\Component\Resource\Repository\RepositoryInterface $productAssociationTypeRepository ) | ||
$productAssociationFactory | Sylius\Component\Resource\Factory\FactoryInterface | |
$productRepository | Sylius\Component\Product\Repository\ProductRepositoryInterface | |
$productAssociationTypeRepository | Sylius\Component\Resource\Repository\RepositoryInterface |
protected FactoryInterface,Sylius\Component\Resource\Factory $productAssociationFactory | ||
Результат | Sylius\Component\Resource\Factory\FactoryInterface |
protected RepositoryInterface,Sylius\Component\Resource\Repository $productAssociationTypeRepository | ||
Результат | Sylius\Component\Resource\Repository\RepositoryInterface |