Generator/DoctrineManagerGenerator.php 1 location
|
@@ 33-39 (lines=7) @@
|
30 |
|
*/ |
31 |
|
public function generate($forceOverwrite = false) |
32 |
|
{ |
33 |
|
if (!$this->canWriteToFile($forceOverwrite)) { |
34 |
|
throw new \RuntimeException(sprintf( |
35 |
|
'Unable to generate the %s manager class as it already exists under the file: %s', |
36 |
|
$this->helper->getEntityClass() . 'Type', |
37 |
|
$this->helper->getManagerFullFilename() |
38 |
|
)); |
39 |
|
} |
40 |
|
|
41 |
|
$this->renderFile( |
42 |
|
'manager/manager.php.twig', |
Generator/DoctrineRepositoryGenerator.php 1 location
|
@@ 33-39 (lines=7) @@
|
30 |
|
*/ |
31 |
|
public function generate($forceOverwrite = false) |
32 |
|
{ |
33 |
|
if (!$this->canWriteToFile($forceOverwrite)) { |
34 |
|
throw new \RuntimeException(sprintf( |
35 |
|
'Unable to generate the %s Repository class as it already exists under the file: %s', |
36 |
|
$this->helper->getEntityClass(), |
37 |
|
$this->helper->getRepositoryFullFilename() |
38 |
|
)); |
39 |
|
} |
40 |
|
|
41 |
|
$this->renderFile( |
42 |
|
'repository/repository.php.twig', |
Generator/DoctrineSerializationConfigGenerator.php 1 location
|
@@ 50-56 (lines=7) @@
|
47 |
|
throw new IOException('Unable to create config/serializer directory'); |
48 |
|
} |
49 |
|
|
50 |
|
if (!$this->canWriteToFile($file, $forceOverwrite)) { |
51 |
|
throw new \RuntimeException(sprintf( |
52 |
|
'Unable to generate the %s serialization config as it already exists under the file: %s', |
53 |
|
$this->helper->getEntityClass(), |
54 |
|
$file |
55 |
|
)); |
56 |
|
} |
57 |
|
|
58 |
|
$entityNameLower = $this->helper->camelToUnderscore($this->helper->getEntityClass()); |
59 |
|
|