You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you use a join query, and want to map one field which exists in both tables, it doesn't work.
Information
Version of Medoo: 1.7.2
Type of Database (MySQL, MSSQL, SQLite...): Mysql
System (Liunx\Windows\Mac): Windows
Detail Code
If I do this, they cant find the index mappin 'books.id' $result = $this->select( ['[>]photos' => ['id' => 'photo_id']] , [ 'books.id' => [ 'books.id [Int]', 'name', 'url' ]], ["books.id" => $ids]);
In this case, the field ID exists in photos and books, so the query crash. $result = $this->select( ['[>]photos' => ['id' => 'photo_id']] , [ 'id' => [ 'books.id [Int]', 'name', 'url' ]], ["books.id" => $ids]);
The text was updated successfully, but these errors were encountered:
Describe the bug
When you use a join query, and want to map one field which exists in both tables, it doesn't work.
Information
Detail Code
If I do this, they cant find the index mappin 'books.id'
$result = $this->select( ['[>]photos' => ['id' => 'photo_id']] , [ 'books.id' => [ 'books.id [Int]', 'name', 'url' ]], ["books.id" => $ids]);
In this case, the field ID exists in photos and books, so the query crash.
$result = $this->select( ['[>]photos' => ['id' => 'photo_id']] , [ 'id' => [ 'books.id [Int]', 'name', 'url' ]], ["books.id" => $ids]);
The text was updated successfully, but these errors were encountered: