Ticket #994 (closed defect: fixed)

Opened 14 months ago

Last modified 14 months ago

Doctrine-0.11.0-RC1 Import substitutes all 'S' character on tables for an '_'

Reported by: teixi Owned by: jwage
Priority: minor Milestone: 0.11.0
Component: Attributes Version: 0.11.0
Severity: Keywords:
Cc: Has Test:
Status: Has Patch:

Description

Doctrine-0.11.0-RC1 Import substitutes all 'S' character on tables for an '_'

Also some upper cases letters on tables are transformed to lower case.

ie: supose the following MySQL table:
PM_SEQ_BESCANVI

Wen running Doctrine::generateModelsFromDb translate this to:
PMeQ_BE_CANVI.php

class PM
eQ_BE_CANVI extends BasePMeQ_BE_CANVI

Then its a little weird to deal with your own tables with those names Table PM_USUARIS_TIPUS is transformed to: PM_U_UARI_tIPU_.php

etc.

Change History

Changed 14 months ago by jwage

  • milestone changed from 0.11.2 to 0.11.0

Changed 14 months ago by jwage

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

fixed by r4317

You can now specify ->setAttribute('import_singularize', false) and it will not attempt to singularize the models when it imports them.

Changed 14 months ago by jwage

(In [4318]) fixes #994

Note: See TracTickets for help on using tickets.