Propel Syntax Error Received when using reserved keywords in table or column names

Viewed 421

Is there a way to have Propel automatically escape column names which are reserved words when adding/updating a row?

Right now I have a column named 'order' and when I try to update using

$row->setOrder(1)->save();

I get a syntax error "PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "order"\nLINE 1: UPDATE terms SET order=$1 WHERE terms.id=$2\n ^'"

1 Answers
Related