Doctrine 1
  1. Doctrine 1
  2. DC-224

Pear style class generation causes underscores in models_path to be replaced with slashes

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0-BETA2
    • Fix Version/s: 1.2.0-BETA3
    • Component/s: Cli, Import/Export
    • Labels:
      None
    • Environment:
      Windows Server 2003

      Description

      In Doctrine/Import/Builder.php, if pear style generation is enabled, underscores are replaced with slashes to create the Pear style directory layout. The code that builder.php uses is below.

      if ($this->_pearStyle) {
      $writePath = str_replace('_', '/', $writePath);
      }

      If the models_path contains an underscore, for example "D:\Inetpub_EXT\app\models", the underscore also gets converted to a slash. All of the models end up being created in the "D:\Inetpub\EXT\app\models" directory.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: