Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-26

Add support for subdirectories in classdir when using schema-tool --create

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-ALPHA2
    • Component/s: Tools
    • Security Level: All
    • 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.

        Activity

        Hide
        Roman S. Borschel added a comment -

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

        Show
        Roman S. Borschel added a comment - Jon, I remember you mentioning this issue already. Did you fix it already?
        Hide
        Jonathan H. Wage added a comment -

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

        Show
        Jonathan H. Wage added a comment - No but I will fix it. The problem exists in Doctrine\ORM\Tools\Export\ClassMetadataExporter as well.
        Hide
        Guilherme Blanco added a comment -

        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.

        Show
        Guilherme Blanco added a comment - 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.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Ismo Toijala
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: