Doctrine 1
  1. Doctrine 1
  2. DC-243

Passing $options to Doctrine_Core::generateModelsFromDb() From Doctrine_Cli()

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0-BETA2
    • Fix Version/s: 1.2.0-RC1
    • Component/s: Cli
    • Labels:
      None
    • Environment:
      Doctrine 1.2-BETA2

      Description

      Here the issue when I create models from existing database.
      I use doctrine-cli to do that, and make some configuration like this

      Array
      (
      [connection_string] => mysql://user:password@localhost/db
      [data_fixtures_path] => /data/fixtures/path
      [models_path] => /models/path
      [migrations_path] => /migrations/path
      [sql_path] => /sql/path
      [yaml_schema_path] => /yaml/schema/path
      [generate_models_options] => Array
      (
      [generateBaseClasses] => 1
      [classPrefixFiles] => Model
      [classPrefix] => Model
      [baseClassPrefix] => Base_
      )
      )

      But, when I run the command with like this
      php doctrine-cli.php generate-models-db

      All models is created, but not follow the configuration.
      I have look the code and find the real problem is options argument didn't pass when call Doctrine_Core::generateModelsFromDb()

      Regards

      Dolly

      1. DC-243.patch
        0.8 kB
        Dolly Aswin Harahap

        Activity

        Hide
        Dolly Aswin Harahap added a comment -

        Here I attach a patch for this issue. This patch is created from branches 1.2
        Please check the patch.

        Show
        Dolly Aswin Harahap added a comment - Here I attach a patch for this issue. This patch is created from branches 1.2 Please check the patch.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: