1 | <?php |
||
34 | class SqlStatementRepository extends \TechDivision\Import\Product\Bundle\Repositories\SqlStatementRepository |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * The SQL statements. |
||
39 | * |
||
40 | * @var array |
||
41 | */ |
||
42 | private $statements = array( |
||
|
|||
43 | SqlStatementKeys::CREATE_SEQUENCE_PRODUCT_BUNDLE_OPTION => |
||
44 | 'INSERT INTO ${table:sequence_product_bundle_option} VALUES ()', |
||
45 | SqlStatementKeys::CREATE_SEQUENCE_PRODUCT_BUNDLE_SELECTION => |
||
46 | 'INSERT INTO ${table:sequence_product_bundle_selection} VALUES ()', |
||
47 | SqlStatementKeys::UPDATE_PRODUCT_BUNDLE_OPTION => |
||
48 | 'UPDATE ${table:catalog_product_bundle_option} |
||
49 | SET ${column-values:catalog_product_bundle_option} |
||
50 | WHERE option_id = :option_id |
||
51 | AND parent_id = :parent_id', |
||
52 | SqlStatementKeys::UPDATE_PRODUCT_BUNDLE_SELECTION => |
||
53 | 'UPDATE ${table:catalog_product_bundle_selection} |
||
54 | SET ${column-values:catalog_product_bundle_selection} |
||
55 | WHERE selection_id = :selection_id |
||
56 | AND parent_product_id = :parent_product_id', |
||
57 | ); |
||
58 | |||
59 | /** |
||
60 | * Initializes the SQL statement repository with the primary key and table prefix utility. |
||
61 | * |
||
62 | * @param \IteratorAggregate<\TechDivision\Import\Utils\SqlCompilerInterface> $compilers The array with the compiler instances |
||
63 | */ |
||
64 | public function __construct(\IteratorAggregate $compilers) |
||
73 | } |
||
74 |