Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
WE.SpreadsheetImport
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Labels
Merge Requests
0
Merge Requests
0
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
packages
WE.SpreadsheetImport
Commits
f03e6271
Commit
f03e6271
authored
Nov 04, 2016
by
Simon Gadient
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] Store deleted count on import
refs KIME-4583
parent
4269a602
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Classes/WE/SpreadsheetImport/SpreadsheetImportService.php
Classes/WE/SpreadsheetImport/SpreadsheetImportService.php
+1
-2
No files found.
Classes/WE/SpreadsheetImport/SpreadsheetImportService.php
View file @
f03e6271
...
@@ -244,12 +244,11 @@ class SpreadsheetImportService {
...
@@ -244,12 +244,11 @@ class SpreadsheetImportService {
$this
->
persistenceManager
->
persistAll
();
$this
->
persistenceManager
->
persistAll
();
}
}
}
}
$deleteCount
=
0
;
if
(
$this
->
spreadsheetImport
->
isDeleting
())
{
if
(
$this
->
spreadsheetImport
->
isDeleting
())
{
$notExistingObjects
=
$this
->
findObjectsByArgumentsAndExcludedIds
(
$processedObjectIds
);
$notExistingObjects
=
$this
->
findObjectsByArgumentsAndExcludedIds
(
$processedObjectIds
);
foreach
(
$notExistingObjects
as
$object
)
{
foreach
(
$notExistingObjects
as
$object
)
{
$objectRepository
->
remove
(
$object
);
$objectRepository
->
remove
(
$object
);
if
(
++
$
deleteCount
%
$persistRecordsChunkSize
===
0
)
{
if
(
++
$
totalDeleted
%
$persistRecordsChunkSize
===
0
)
{
$this
->
persistenceManager
->
persistAll
();
$this
->
persistenceManager
->
persistAll
();
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment