开发者

Using forbidden column names in doctrine 1.2

I'm using postgresql database. I have table开发者_StackOverflow社区 with column called "from" (I can't change it). Sql insertion query generated by doctrine are incorrect, because column name "from" should be closed by quotation marks. How can I tell doctrine to do this?

I believe, there is fast and clean way to correct that.

Thanks in advance.


Maybe $conn->setAttribute(Doctrine_Core::ATTR_QUOTE_IDENTIFIER, true);? From Docs -> Configuration -> Identifier quoting

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜