DDC-3345: Error generating entities using docblock (with php) the EntityGenerator is not generating the class properties #4134

Closed
opened 2026-01-22 14:35:51 +01:00 by admin · 1 comment
Owner

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

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
admin added the BugWon't Fix labels 2026-01-22 14:35:51 +01:00
admin closed this issue 2026-01-22 14:35:51 +01:00
Author
Owner

@Majkl578 commented on GitHub (Dec 19, 2017):

EntityGenerator is going to be dropped in Doctrine 3.0.

@Majkl578 commented on GitHub (Dec 19, 2017): EntityGenerator is going to be dropped in Doctrine 3.0.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4134