阅读背景:

CakePHP HABTM插件表命名约定(适用于1.3)

来源:互联网 

I know naming conventions for tables used by plugins generally start with the name of the plugin and then the model pluralized. For example lets say I had a plugin called Poll, with a model also called PollPoll and another model called PollTag then the resulting table names would be poll_polls and poll_tags. They would also have a habtm relationship so what is the convention for that table name? I believe it would poll_poll_polls_poll_tags, although it is a little redundant it makes sense since the first poll_ represents the name of the plugin, while poll_polls and poll_tags relates to the models.I know naming conventions for tables used by pl




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: