Skip to content

数据库配置时,主键有不止1个,该如何配置? #139

@Coolkkmeat

Description

@Coolkkmeat

例如现在的 dbs.php 配置为:

"user" => array(
    "prefix" => "",
    "key" => "userId",
    "map" => array(
        array("db" => "db_master"),
    ),
),

如果除了 userId 还有 xxx 另一个主键,那该如何设置呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions