开发者

Using forbidden column names in doctrine 1.2

开发者 https://www.devze.com 2023-03-24 20:25 出处:网络
I\'m using postgresql database. I have table开发者_StackOverflow社区 with column called \"from\" (I can\'t change it).

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

精彩评论

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