Skip to content

dbObject.php - Join choose On ...column  #390

@KTP95

Description

@KTP95

There are a bug:

Is impossible make Join To ad Not-primary Key.
example structure:
Object Files adn Disks have primary Key ID.
Every "Files" hasMany Disks, Every Disk Has Many Files.

Relationish Files-Disk" is declared in "FilesDisk" table, WITHOUT A PRIMARY KEY, but with colum "fileid" and "diskid" in relationiship "UNIQUE"


So, Files can't join Disks....and Disks can't join Files because "FilesDisk" not have primary key.... so, for solve this, i propose add parameter $primaryKey to join() method.

I have Solving,Commit KTP95@148302e

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