kfirufk / zend-db-model-generator

Automatically exported from code.google.com/p/zend-db-model-generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backtick on column names in MapperAbstract

GoogleCodeExporter opened this issue · comments

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:

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

  • Changed state: Started