Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Fix issue when number of iterated objects is zero and we want to flus…
Browse files Browse the repository at this point in the history
…h it
  • Loading branch information
Pierstoval committed Jan 11, 2020
1 parent 517a321 commit a08bda3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions AbstractFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ private function fixtureObject(array $data): void

// If we need to flush it, then we do it too.
if (
$this->numberOfIteratedObjects > 0
&& $this->flushEveryXIterations() > 0
$this->flushEveryXIterations() > 0
&& $this->numberOfIteratedObjects % $this->flushEveryXIterations() === 0
) {
$this->manager->flush();
Expand Down

0 comments on commit a08bda3

Please sign in to comment.