Details
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
Here I attach a patch for this issue. This patch is created from branches 1.2
Please check the patch.