|Error in Doctrine_Search with CamelCase fields [message #102384]
||Tue, 13 July 2010 00:06
Registered: July 2010
I'm using doctrine in a big project with no problens.
My tables are all CamelCase... otherwise, to use well in my codes I just type it in lowercase, and all work realy fine.
But now I'm having a problem with this in the Doctrine_Search class.
On the line 254 the class read a field value using it by array.
In my model I have:
'fields' => array('Titulo', 'Numero'),
'batchUpdates' => true
But, putting the field 'Titulo' or 'titulo', doctrine will convert it to lower case in line 228.
$fields[$i] = $table->getColumnName($fields[$i], $fields[$i]);
Ok, ok.. My fields needs to be lower case!? No, I ever used my database with CamelCase and I all work fine, just here I'm in problem.
This is it.
What's the best way to submit this to correction?