nciri / zend-db-model-generator

Automatically exported from code.google.com/p/zend-db-model-generator
0 stars 0 forks source link

Backtick on column names in MapperAbstract #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a table with a column named "key" 
2. Generate the mapper
3. Use findByField or findByOneField like findOneByField('key', 'value')

What is the expected output? What do you see instead?
We expect the row that match but instead we got an error on 'key'.

What version of the product are you using? On what operating system?
Ubuntu Linux 10.04, Mysql 5 

Please provide any additional information below.
We resolve by putting backtick on each {$column} or {$field} occurrence in tpl.

Original issue reported on code.google.com by emanuele...@gmail.com on 10 Feb 2012 at 10:35

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by pedrospdc on 18 Feb 2012 at 6:05