@@ -49,17 +49,17 @@ protected function doExecute(LoggerInterface $logger, $dryRun = false)
49
49
'FROM orocrm_sales_b2bcustomer WHERE account_id IS NULL ' ;
50
50
$ customersWithoutAccount = $ this ->connection ->fetchAll ($ query );
51
51
foreach ($ customersWithoutAccount as $ customer ) {
52
- $ query = 'INSERT INTO orocrm_account SET user_owner_id = :user_owner_id, ' .
53
- 'organization_id = : organization_id, name = :name , createdAt = :createdAt, ' .
54
- 'updatedAt = :updatedAt, serialized_data = :serialized_data ' ;
52
+ $ query = 'INSERT INTO orocrm_account ' .
53
+ '(user_owner_id, organization_id, name, createdAt, updatedAt, serialized_data) ' .
54
+ 'VALUES(:user_owner_id, :organization_id, :name, :createdAt, :updatedAt, :serialized_data) ' ;
55
55
$ this ->connection ->executeQuery (
56
56
$ query ,
57
57
[
58
58
'user_owner_id ' => $ customer ['user_owner_id ' ],
59
59
'organization_id ' => $ customer ['organization_id ' ],
60
60
'name ' => $ customer ['name ' ],
61
- 'createdAt ' => $ customer ['createdAt ' ],
62
- 'updatedAt ' => $ customer ['updatedAt ' ],
61
+ 'createdAt ' => isset ( $ customer ['createdAt ' ]) ? $ customer [ ' createdAt ' ] : $ customer [ ' createdat ' ],
62
+ 'updatedAt ' => isset ( $ customer ['updatedAt ' ]) ? $ customer [ ' updatedAt ' ] : $ customer [ ' updatedat ' ],
63
63
'serialized_data ' => base64_encode (serialize (null )),
64
64
],
65
65
[
0 commit comments