Skip to content

Commit

Permalink
Merge pull request orangehill#48 from orangehill/prerunpostrun
Browse files Browse the repository at this point in the history
Fix for prerun and postrun handling
  • Loading branch information
andjelicsasa committed Feb 2, 2016
2 parents 1847f70 + 42a5e64 commit e796c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Orangehill/Iseed/Iseed.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function populateStub($class, $stub, $table, $data, $chunkSize = null, $p

$prerunEventInsert = '';
if ($prerunEvent) {
$prerunEventInsert .= "\$response = Event::fire(new $prerunEvent());";
$prerunEventInsert .= "\$response = Event::until(new $prerunEvent());";
$this->addNewLines($prerunEventInsert);
$this->addIndent($prerunEventInsert, 2);
$prerunEventInsert .= 'if ($response === false) {';
Expand All @@ -224,7 +224,7 @@ public function populateStub($class, $stub, $table, $data, $chunkSize = null, $p

$postrunEventInsert = '';
if ($postrunEvent) {
$postrunEventInsert .= "\$response = Event::fire(new $postrunEvent());";
$postrunEventInsert .= "\$response = Event::until(new $postrunEvent());";
$this->addNewLines($postrunEventInsert);
$this->addIndent($postrunEventInsert, 2);
$postrunEventInsert .= 'if ($response === false) {';
Expand Down

0 comments on commit e796c3a

Please sign in to comment.