[DDC-2638] [GH-770] Fix for entity generator discriminator column Created: 28/Aug/13 Updated: 07/Sep/13 Resolved: 07/Sep/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Doctrine Bot||Assignee:||Benjamin Eberlei|
This issue is created automatically through a Github pull request on behalf of fulopattila122:
I was using the EntityGenerator to create class files from yaml when I realized php warnings like `PHP Warning: Illegal string offset 'name'` on the console. Warnings have also been emitted for the `type` and `length` fields.
The generated php file also contained a wrong annotation for the discriminator column:
The single change in this pull request resolves the problem, so even the warnings disappear and the generated file contains the proper annotation.
An example yaml:
|Comment by Doctrine Bot [ 28/Aug/13 ]|
A related Github Pull-Request [GH-770] was closed: