Development

#5414 (Doctrine admin generator problem with mixed case column names)

You must first sign up to be able to contribute.

Ticket #5414 (closed defect: fixed)

Opened 7 months ago

Last modified 6 months ago

Doctrine admin generator problem with mixed case column names

Reported by: caponica Assigned to: Jonathan.Wage
Priority: major Milestone:
Component: sfDoctrinePlugin Version: 1.2.0
Keywords: doctrine admin generator lowercase camel lower case Cc:
Qualification: Unreviewed

Description

In my config/doctrine/schema.yml I have a definition something like this:

MyThing:
  tableName:        mythings
  columns:
    field1:         string(40)
    another_field:  boolean
    fooBar:         boolean

Note that fooBar is in camelCase.

However, when I use the Doctrine admin generator, the generated templates appear to convert all the field names to lower case which leads to a Doctrine_Record_Exception when the template tries to pull in values such as $mything['foobar'] instead of $mything['fooBar'] , which obviously fails.

I guess that, somewhere in the chain, the DAG is converting the field names to lower case. Hopefully this is an easy problem to address by removing that case change!

PS. This other ticket [ http://trac.symfony-project.org/ticket/5411 ] might also be related to this one.

C

Change History

12/22/08 20:34:15 changed by Jonathan.Wage

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

(In [14253]) [1.2] sfDoctrinePlugin: fixing camel case columns for admin generators (closes #5414)

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.