Commit 08fabae
committed
bug #350 make:entity "Self" or "Parent" (Adrien Laconi, weaverryan)
This PR was merged into the 1.0-dev branch.
Discussion
----------
make:entity "Self" or "Parent"
After using ``make:entity Self`` or ``make:entity Parent``, maker-bundle build 2 files :
```
created: src/Entity/Self.php
created: src/Repository/SelfRepository.php
```
But, after that :
```
Fatal error: Cannot use 'Self' as class name as it is reserved in /var/www/html/demo/src/Entity/Self.php on line 10
```
... and others "Call Stack" to finish with a "CRITICAL".
You must remove ``src/Entity/Self.php`` and ``src/Repository/SelfRepository.php`` to continue.
Commits
-------
f6a011c lowercasing special chars because we compare to a lowercase string
ec6ef77 Correction du problème lié à la création d'une classe "Self" ou "Parent" (make:entity), sinon une exception est levée APRES la création du fichier (Il faut forcément supprimer les fichiers générés).1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments