@@ 335-344 (lines=10) @@ | ||
332 | $this->getFilterGenerator($bundle)->generate($bundle, $entity, $metadata[0], $forceOverwrite, $type); |
|
333 | } |
|
334 | ||
335 | protected function getFilterGenerator($bundle = null) |
|
336 | { |
|
337 | if (null === $this->filterGenerator) { |
|
338 | $metadataGuesser = new MetadataGuesser(new DisconnectedMetadataFactory($this->getContainer()->get('doctrine'))); |
|
339 | $this->filterGenerator = new PetkoparaFilterGenerator($metadataGuesser); |
|
340 | $this->filterGenerator->setSkeletonDirs($this->getSkeletonDirs($bundle)); |
|
341 | } |
|
342 | ||
343 | return $this->filterGenerator; |
|
344 | } |
|
345 | ||
346 | protected function getFormGenerator($bundle = null) |
|
347 | { |
|
@@ 346-355 (lines=10) @@ | ||
343 | return $this->filterGenerator; |
|
344 | } |
|
345 | ||
346 | protected function getFormGenerator($bundle = null) |
|
347 | { |
|
348 | if (null === $this->formGenerator) { |
|
349 | $metadataGuesser = new MetadataGuesser(new DisconnectedMetadataFactory($this->getContainer()->get('doctrine'))); |
|
350 | $this->formGenerator = new PetkoparaFormGenerator($metadataGuesser); |
|
351 | $this->formGenerator->setSkeletonDirs($this->getSkeletonDirs($bundle)); |
|
352 | } |
|
353 | ||
354 | return $this->formGenerator; |
|
355 | } |
|
356 | ||
357 | public function setFilterGenerator(PetkoparaFilterGenerator $filterGenerator) |
|
358 | { |