Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.x
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None
    • Environment:
      Debian LAMP - PHP5.3 - Apache 2

      Description

      Hi there,
      AbsractFileDriver is using the filename to know the managed class.

      It's a cool feature because it's allow loading on-demand.
      The problem is, that the filename must be the name of the Class.

      It should be great to be able to manually map XML/YAML File description to a Class, like :
      $drivers->addMappingFile ( array ( "filename" => "class", "filename2" => "class2") );

      This feature is simple to implement, just add a new array inside AbsractFileDriver to know the mapping.
      When using the current method with addPaths, parse the folder to get traditional XML/YAML file where filename corresponding to classname and add it to the mapping array.

      AbsractFileDriver->getAllClassNames () just return value of mapping array.
      The mapping array is store inside cache.

      With this new feature, it allow developers to create a pretty folder that contains entities mapping.

      Armetiz.

        Activity

        Thomas Tourlourat - Armetiz created issue -
        Thomas Tourlourat - Armetiz made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Minor [ 4 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.1.3 [ 10164 ]
        Fix Version/s 2.1.2 [ 10154 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.1.4 [ 10165 ]
        Fix Version/s 2.1.3 [ 10164 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.2-DEV [ 10157 ]
        Fix Version/s 2.1.4 [ 10165 ]
        Guilherme Blanco made changes -
        Fix Version/s 2.x [ 10090 ]
        Fix Version/s 2.2 [ 10157 ]
        Fabio B. Silva made changes -
        Assignee Benjamin Eberlei [ beberlei ] Fabio B. Silva [ fabio.bat.silva ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13015 ] jira-feedback [ 13967 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13967 ] jira-feedback2 [ 15831 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15831 ] jira-feedback3 [ 18087 ]

          People

          • Assignee:
            Fabio B. Silva
            Reporter:
            Thomas Tourlourat - Armetiz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: