@@ 448-454 (lines=7) @@ | ||
445 | $partialFunctions .= $this->render('/PagePartialFunctions.php.twig', $twigParameters); |
|
446 | } |
|
447 | ||
448 | if ($parameters['uses_category']) { |
|
449 | $twigParameters['type'] = 'Category'; |
|
450 | $twigParameters['pluralType'] = 'categories'; |
|
451 | $partial .= $this->render('/PagePartial.php.twig', $twigParameters); |
|
452 | $partialFunctions .= $this->render('/PagePartialFunctions.php.twig', $twigParameters); |
|
453 | $constructor .= '$this->categories = new ArrayCollection();' . "\n"; |
|
454 | } |
|
455 | ||
456 | if ($parameters['uses_tag']) { |
|
457 | $twigParameters['type'] = 'Tag'; |
|
@@ 456-462 (lines=7) @@ | ||
453 | $constructor .= '$this->categories = new ArrayCollection();' . "\n"; |
|
454 | } |
|
455 | ||
456 | if ($parameters['uses_tag']) { |
|
457 | $twigParameters['type'] = 'Tag'; |
|
458 | $twigParameters['pluralType'] = 'tags'; |
|
459 | $partial .= $this->render('/PagePartial.php.twig', $twigParameters); |
|
460 | $partialFunctions .= $this->render('/PagePartialFunctions.php.twig', $twigParameters); |
|
461 | $constructor .= '$this->tags = new ArrayCollection();' . "\n"; |
|
462 | } |
|
463 | GeneratorUtils::replace('//%PagePartial.php.twig%', $partial, $dirPath . '/' . $this->entity . 'Page.php'); |
|
464 | GeneratorUtils::replace('//%PagePartialFunctions.php.twig%', $partialFunctions, $dirPath . '/' . $this->entity . 'Page.php'); |
|
465 | GeneratorUtils::replace('//%constructor%', $constructor, $dirPath . '/' . $this->entity . 'Page.php'); |