Using Forbidden Column Names in Doctrine 1.2

I am using postgresql database. I have a table with a "from" column (I cannot change it). The Sql input request created by the doctrine is incorrect because the column name "from" must be enclosed in quotation marks. How can I tell a doctrine to do this?

I believe there is a quick and clean way to fix this.

Thanks in advance.

+5
source share
1 answer

Maybe $conn->setAttribute(Doctrine_Core::ATTR_QUOTE_IDENTIFIER, true);? From Documents → Configuration → Identifier Designation

+3
source

All Articles