Kohana 3 ORM 表命名

发布于 2024-12-15 16:29:44 字数 149 浏览 6 评论 0原文

我的问题是关于多字 MySQL 表名称的约定,例如“comments_flags”,它不是数据透视表。

  • “comments_flags”的正确数据库表名称是什么?
  • 对应的型号名称是什么?

感谢您的任何建议。

My question is about the conventions around a multi-worded MySQL table name e.g. "comments_flags," which is not a pivot table.

  • What is the correct database table name for "comments_flags"?
  • What would the corresponding model name be?

Thanks for any advice.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

亚希 2024-12-22 16:29:44

这与单个单词的情况没有什么不同。

“comments_flags”的正确数据库表名称是什么?

评论标志

对应的型号名称是什么?

模型_评论_标志

模型的路径应该是什么?

application/classes/model/comments/flag.php

It is no different then for single word cases.

What is the correct database table name for "comments_flags"?

comments_flags

What would the corresponding model name be?

Model_Comments_Flag

What should be the path to the model?

application/classes/model/comments/flag.php
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文