mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #770] [MERGED] Fix for entity generator discriminator column #8685
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/770
Author: @fulopattila122
Created: 8/28/2013
Status: ✅ Merged
Merged: 8/28/2013
Merged by: @guilhermeblanco
Base:
master← Head:master📝 Commits (1)
5669aafFix for entity generator discriminator column📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
lib/Doctrine/ORM/Tools/EntityGenerator.php(+1 -1)📄 Description
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 thetypeandlengthfields.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:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.