Skip to content

Commit

Permalink
BUGFIX: make persist() protected again
Browse files Browse the repository at this point in the history
  • Loading branch information
simstern committed Jan 12, 2023
1 parent 324ca46 commit feee98c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@ protected function getFixtureObjects(string $fixtureName, string $fixtureSet, ar

$realPaths = array_filter(array_map(fn(string $path) => realpath($path), $paths));
if (!$realPaths) {
throw new Exception(sprintf('No fixture found with name "%s".', $fixtureSet), 1614235946);
throw new Exception(sprintf('No fixture found with name "%s" in path "%s".', $fixtureName, implode(';', $paths)), 1614235946);
}
foreach ($realPaths as $realPath) {
$objects = array_merge($objects, $this->loader->loadFile($realPath, $parameters)->getObjects());
$objects = $this->loader->loadFile($realPath, $parameters, $objects)->getObjects();
}

return $objects;
}

private function persist(array $objects): void
protected function persist(array $objects): void
{
foreach ($objects as $object) {
if ($this->persistenceManager->isNewObject($object)) {
Expand Down

0 comments on commit feee98c

Please sign in to comment.