简体   繁体   English

Cakephp MySQL 数据库表列名

[英]Cakephp MySQL database table column name

Is there a way to bypass the column names ending with "_id" and just use this as column name for the current table without creating relationship with other tables?有没有办法绕过以“_id”结尾的列名并将其用作当前表的列名而不与其他表建立关系? I want to create a model without linking to any other table but maintain column name ending with "_id".我想创建一个 model 而不链接到任何其他表,但保持以“_id”结尾的列名。

Just don't specify the relationship in the models.只是不要在模型中指定关系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM