Skip to content


DDC-26: Add support for subdirectories in classdir when using schema-tool --create #3329

doctrinebot opened this Issue · 4 comments

2 participants


Jira issue originally created by user itoijala:

Currently when using schema-tool --create, all entity classes have to be in one directory. Subdirectories are not supported and result in errors. The iterator tries to require the subdirectories. This makes it impossible to use schema-tool --create to create the database for models that use namespaces and follow Doctrine rules for placing the files in subdirectories.

The schema-tool should iterate through all of the subdirectories of the classdir to find all of the entity classes. It should also not try to require() any directories.


Comment created by romanb:

Jon, I remember you mentioning this issue already. Did you fix it already?


Comment created by @jwage:

No but I will fix it. The problem exists in Doctrine\ORM\Tools\Export\ClassMetadataExporter as well.


Comment created by @guilhermeblanco:

We should make is an option, not recursive all the time.... maybe include as an optional parameter --recursive

I'll check it out the issue and will come with a solution later today.


Issue was closed with resolution "Fixed"

@jwage jwage was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0-ALPHA2 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.