Uploaded image for project: 'Doctrine 1'
  1. Doctrine 1
  2. DC-287

Schema: package property for model

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Schema Files
    • Labels:
      None

      Description

      There is a property "package" for the schema.yml file.
      http://www.doctrine-project.org/documentation/manual/1_0/en/yaml-schema-files#features-examples:packages

      But this should be used only for plugin symfony.

      It will be good to have the same feature for classic model (not plugin), to be available to organize the model inside of the model folder.

      This feature is critical for huge project. Indeed having 200 files at the root of the folder model/doctrine is very difficult to maintain.

        Activity

        Hide
        titang Mickael HOAREAU added a comment - - edited

        Here a possible patch for doctrine 1.2, it is working for the basic cases.

        It probably needs to be improved.

        Show
        titang Mickael HOAREAU added a comment - - edited Here a possible patch for doctrine 1.2, it is working for the basic cases. It probably needs to be improved.
        Hide
        jwage Jonathan H. Wage added a comment -

        I agree this is a problem, but your patch is not good. It doesn't follow the coding standards and has some formatting problems. Also, it doesn't seem like a good solution. What do you think?

        Show
        jwage Jonathan H. Wage added a comment - I agree this is a problem, but your patch is not good. It doesn't follow the coding standards and has some formatting problems. Also, it doesn't seem like a good solution. What do you think?

          People

          • Assignee:
            jwage Jonathan H. Wage
            Reporter:
            titang Mickael HOAREAU
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: