This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » General plug-ins » Error in Doctrine_Search with CamelCase fields
Error in Doctrine_Search with CamelCase fields [message #102384] Tue, 13 July 2010 00:06
TiagoGouvea  is currently offline TiagoGouvea
Messages: 1
Registered: July 2010
Junior Member
Hello,

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.

 $data  = $row[$field];


In my model I have:

$searchble=new Doctrine_Template_Searchable(array(
                '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?

Thanks!
Previous Topic:[SOLVED]Problems with sfDoctrineApplyPlugin
Next Topic:Installation of sfDoctrineRestGeneratorPlugin - 0.9.2
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software