Doctrine 1
  1. Doctrine 1
  2. DC-210

PEAR style models generation produces unusable table classes

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.2.0-BETA2
    • Fix Version/s: 1.2.0-BETA3
    • Component/s: Import/Export
    • Labels:
      None

      Description

      When generating models like:

      'pearStyle' => true,
      'generateTableClasses' => true,
      'classPrefix' => 'Model_',
      'baseClassPrefix' => 'Base_',
      'baseClassesDirectory' => 'Base',
      'classPrefixFiles' => true

      or

      'pearStyle' => true,
      'generateTableClasses' => true,
      'classPrefix' => 'Model_',
      'baseClassPrefix' => 'Base_',
      'baseClassesDirectory' => 'Base',
      'classPrefixFiles' => false

      Produced files are like this:

      Model_ModelName extends Base_ModelName
      Base_ModelName extends Doctrine_Record
      ModelNameTable extends Doctrine_Table

      Problem is ModelNameTable class is not prefixed with "Model_" and thus cannot be autoloaded.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: