views:

422

answers:

0

Just getting started with Doctrine ORM for PHP (v1.1.5) and ran into something unexpected.

I am generating models from the db (MySQL 4) using:

Doctrine::generateModelsFromDb($pathToModels);

Then generating YAML from the models using:

Doctrine::generateYamlFromModels($pathToSchema . '/schema.yml', $pathToModels);

In the generated models, the column names (as defined in hasColumn()) use the same case for the fields as in the db. All good.

But in the generated YAML, the column names are all lower-case, irrespective of the case in the model.

There do not seem to be any options available on the generateYamlFromModels() method that I could conceivably use to tweak this. Is there some other attribute I should be setting someplace, perhaps at connection-level, or at manager-level, etc? Might it be a bug?

Any ideas greatly appreciated. Thanks and cheers!