namespace Admin\Model;
use Think\Model\RelationModel;
class NodeRelationModel extends RelationModel{
protected $tableName = 'node';
protected $_li
'node' => array(
'mapping_type' =>self::HAS_MANY,
'parent_key' => 'pid',
'mapping_name' => 'sub_node',
'mapping_order' => 'sort',
)
);
}
映射到sub_node上为什么取不到数据。RBAC认证教程里的数据表
最佳答案