cakephp - 使用 HABTM 使用 "soft delete"技术的最佳方法是什么

标签 cakephp has-and-belongs-to-many

目前我正在使用 cakephp 框架。在我的项目中,有三个表(例如: menu、menu_position 和 men_position_rel )。

在菜单表中,我有 id、menu_title 列

在menu_position表中我有id,position_title列

在 men_position_rel 表中,我有 menu_id、position_id 列

在 CakePHP 2.x 中使用 HABTM 表,使用“软删除”技术的最佳方法是什么。

最佳答案

我在这里得到了一个简单且主要的解决方案:http://mrphp.com.au/blog/working-habtm-form-data-cakephp

关于cakephp - 使用 HABTM 使用 "soft delete"技术的最佳方法是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15653003/

相关文章:

php - CakePHP 最佳实践 : Admin with or without routing

ruby-on-rails - Rails 4 has_and_belongs_to_many 不能正常使用包含语句

ruby-on-rails - 创建记录时不保存 HABTM 关联

ruby-on-rails-3 - accpets_nested_attributes_for、HABTM 和 find_or_create

ruby-on-rails - Rails 中复杂的多对多关系

php - cakephp 3.x 同时在两个表中插入数据

php - CakePHP 将 `id` = '1' 放在 WHERE 子句中

php - cakephp2.1 中的数据获取问题

php - CakePhp 3.x、TCPDF、htmlspecialchars

ruby-on-rails - HABTM-唯一性约束