[DDC-26] Add support for subdirectories in classdir when using schema-tool --create Created: 01/Oct/09  Updated: 05/Oct/09  Resolved: 05/Oct/09

Status: Closed
Project: Doctrine 2 - ORM
Component/s: Tools
Affects Version/s: None
Fix Version/s: 2.0-ALPHA2
Security Level: All

Type: Improvement Priority: Critical
Reporter: Ismo Toijala Assignee: Jonathan H. Wage
Resolution: Fixed Votes: 0
Labels: None


 Description   

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.



 Comments   
Comment by Roman S. Borschel [ 01/Oct/09 ]

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

Comment by Jonathan H. Wage [ 01/Oct/09 ]

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

Comment by Guilherme Blanco [ 03/Oct/09 ]

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.

Generated at Sat Nov 29 06:37:58 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.