cakephp:如何创建与3个表的关系?

cakephp:如何创建与3个表的关系?,php,cakephp,Php,Cakephp,cakephp:如何创建与3个表的关系? 我有三张桌子 Table 1 roles, id role_name: (admin, manager, staff..) Table 2 modules id module_name (user module, Group module) Table 2 actions id action_name: (edit, delete, list...) module_id Table 3 permissions id name:(all, owner

cakephp:如何创建与3个表的关系? 我有三张桌子

Table 1 roles,
id
role_name: (admin, manager, staff..)

Table 2 modules
id
module_name (user module, Group module)

Table 2 actions
id
action_name: (edit, delete, list...)
module_id

Table 3 permissions
id
name:(all, owner right, group right, none)
我想在php中创建表角色、操作和权限之间的关系。
假设角色经理拥有“所有者权限”(权限表)来编辑用户模块的操作。

第一步是尝试一些操作。。。什么都行。这里是开始的地方: