Total Complexity | 1 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | class SqlStatementRepository extends \TechDivision\Import\Product\Repositories\SqlStatementRepository |
||
26 | { |
||
27 | /** |
||
28 | * The SQL statements. |
||
29 | * |
||
30 | * @var array |
||
31 | */ |
||
32 | private array $statements = [ |
||
33 | SqlStatementKeys::DELETE_PRODUCT_RELATION => |
||
34 | 'DELETE |
||
35 | FROM ${table:catalog_product_relation} |
||
36 | WHERE parent_id = :parent_id |
||
37 | AND child_id |
||
38 | NOT IN (SELECT `entity_id` FROM ${table:catalog_product_entity} WHERE `sku` IN (:skus))', |
||
39 | ]; |
||
40 | |||
41 | /** |
||
42 | * Initializes the SQL statement repository with the primary key and table prefix utility. |
||
43 | * |
||
44 | * @param IteratorAggregate<SqlCompilerInterface> $compilers The array with the compiler instances |
||
45 | */ |
||
46 | public function __construct(IteratorAggregate $compilers) |
||
55 |