mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3345: Error generating entities using docblock (with php) the EntityGenerator is not generating the class properties #4134
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?
Originally created by @doctrinebot on GitHub (Oct 10, 2014).
Originally assigned to: @Majkl578 on GitHub.
Jira issue originally created by user coisa2004:
I have my files docblock (php) inside a folder named "Script" in the project root and Generated entities are in a folder called "src" inside the root of the project too, when I send generate the entities generating the EntityGenerator Entities within the "src" however without the properties.
On line 852 of EntityGenerator.php there is a validation class_exists and how I'm using docblock with php files, the class does exist and this is causing this block of code ie which existed then taking this class and the properties of it.
In doctrine.jpg image shows my directory structure.
In doctrine1.jpg image shows the block of code that is returning true, but it should return false.
I think if you change "||" to "&&" solve the problem momentarily, but think there are other cases to consider
@Majkl578 commented on GitHub (Dec 19, 2017):
EntityGenerator is going to be dropped in Doctrine 3.0.