Symfony 1.4 主义:data-dump 保留字
我有一个包含 2 列的表,其中包含保留字(read
、write
),是的,我可以更改列名称,我想看看是否有办法做事原样,出于教育目的:-)
当我加载这些表并构建模型时没有问题,Symfony 没有问题从我的 YAML 文件读取表,但是当我尝试数据转储时,SQL 会因为读/写而崩溃是保留字,是的,它们被适当地放入read
刻度中,但仍然没有爱。
所以我的问题是,他们是否可以选择使用转义字符或其他一些选项来提供数据转储来解释这些特殊字符,或者有没有办法从数据转储中排除表?
任何帮助表示赞赏!
I have a table with 2 columns with reserved words (read
, write
), while yes I can change the column names I want to see if there is a way to do things as is, for educational purposes :-)
When I load these tables and build my models there is no issue, Symfony has no issue reading the tables from my YAML file, however when I try a data dump the SQL freaks out because read/write are reserved words, YES they are being put into read
ticks appropriately, but still no love.
So my question is, is their an option to use escape chars or some other option to give data-dump to account for these special chars, OR Is there a way to exclude a table from the data-dump?
Any help appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
考虑使用 *quote_identifier: true*
Consider to use *quote_identifier: true*