Skip to content

Commit

Permalink
Merge pull request #36 from ziggurad/feature/fix-createFieldcollectio…
Browse files Browse the repository at this point in the history
…nDefinition

Fix createFieldcollectionDefinition
  • Loading branch information
bramalho authored Jan 5, 2021
2 parents 0a87b12 + e07d646 commit 59de6b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PimcoreDevkitBundle/Service/InstallerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ public function createFieldcollectionDefinition(string $key, string $jsonFilePat
$fieldcollection = FieldcollectionDefinition::getByKey($key);
} catch (\Exception $exception) {
$this->errors[] = $exception;
}

if (!$fieldcollection) {
$fieldcollection = new FieldcollectionDefinition();
$fieldcollection->setKey($key);
}
Expand Down

0 comments on commit 59de6b6

Please sign in to comment.