Ticket #844 (closed defect: fixed)

Opened 16 months ago

Last modified 16 months ago

generateModelsFromDb does not allow singularizing class names

Reported by: zomg Owned by: lsmith
Priority: minor Milestone: 0.10.4
Component: Import/Export Version: 0.10.0
Severity: Keywords:
Cc: Has Test:
Status: Has Patch:

Description

Doctrine::generateModelsFromDb does not allow using any of the typical options allowed by other model generation methods, and it also does not singularize table names in the model classes.

The attached patches allow passing $options to generateModelsFromDb and modify importSchema so that it's possible to not singularize table names (default behavior = always singularize)

Changes do not break any tests.

Attachments

Import.php.patch (0.7 KB) - added by zomg 16 months ago.
Patch for Doctrine/Import.php
Doctrine.php.patch (0.8 KB) - added by zomg 16 months ago.
Patch for Doctrine.php

Change History

Changed 16 months ago by zomg

Patch for Doctrine/Import.php

Changed 16 months ago by zomg

Patch for Doctrine.php

Changed 16 months ago by zomg

  • milestone changed from 0.10.4 to 0.10.3

Changed 16 months ago by jwage

  • milestone changed from 0.10.3 to 0.10.4

Changed 16 months ago by jwage

  • status changed from new to closed
  • resolution set to fixed

(In [4068]) fixes #844

Note: See TracTickets for help on using tickets.