Свойство | Type | Description | |
---|---|---|---|
$productAssociationFactory | Sylius\Component\Resource\Factory\FactoryInterface | ||
$productAssociationTypeRepository | Sylius\Component\Resource\Repository\RepositoryInterface | ||
$productRepository | Sylius\Component\Product\Repository\ProductRepositoryInterface |
Méthode | Description | |
---|---|---|
__construct ( Sylius\Component\Resource\Factory\FactoryInterface $productAssociationFactory, Sylius\Component\Product\Repository\ProductRepositoryInterface $productRepository, Sylius\Component\Resource\Repository\RepositoryInterface $productAssociationTypeRepository ) | ||
reverseTransform ( $values ) | ||
transform ( $productAssociations ) |
Méthode | Description | |
---|---|---|
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 | ||
Résultat | Sylius\Component\Resource\Factory\FactoryInterface |
protected RepositoryInterface,Sylius\Component\Resource\Repository $productAssociationTypeRepository | ||
Résultat | Sylius\Component\Resource\Repository\RepositoryInterface |