src/Kunstmaan/FixturesBundle/Builder/PageBuilder.php 1 location
|
@@ 77-79 (lines=3) @@
|
74 |
|
$entity = $fixture->getEntity(); |
75 |
|
$fixtureParams = $fixture->getParameters(); |
76 |
|
$translations = $fixture->getTranslations(); |
77 |
|
if (empty($translations)) { |
78 |
|
throw new \Exception('No translations detected for page fixture ' . $fixture->getName() . ' (' . $fixture->getClass() . ')'); |
79 |
|
} |
80 |
|
|
81 |
|
$internalName = array_key_exists('page_internal_name', $fixtureParams) ? |
82 |
|
$fixtureParams['page_internal_name'] : null; |
src/Kunstmaan/FixturesBundle/Builder/PagePartBuilder.php 1 location
|
@@ 54-58 (lines=5) @@
|
51 |
|
$translations = $fixture->getTranslations(); |
52 |
|
$original = $fixture->getEntity(); |
53 |
|
|
54 |
|
if (!isset($params['page']) || empty($translations)) { |
55 |
|
throw new \Exception('No page reference and/or translations detected for pagepart fixture ' . $fixture->getName() . ' (' . $fixture->getClass() . ')'); |
56 |
|
} |
57 |
|
|
58 |
|
$pageFixture = $params['page']; |
59 |
|
if (!$pageFixture instanceof Fixture) { |
60 |
|
throw new \Exception('Could not find a reference "' . $params['page'] . '"" for fixture ' . $fixture->getName() . ' (' . $fixture->getClass() . ')'); |
61 |
|
} |