学说自定义类型 - 保存SQL表达式
我正在尝试创建自定义类型,以简单地将整数递增。我想在数据库级别上执行此操作,其中简单x = x+1其中x是列名。
但是我找不到如何引用列名以及如何强制(如有必要)保存它。
有什么方法可以使用自定义类型执行此操作?
I'm trying to create custom doctrine type that simply increments an integer by one. I want to do it on a database level, with simple x=x+1 where x is the column name.
But I cannot find how to reference the column name and how to force (if necessary) to save it unquoted.
Is there any way to do this with custom type?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论