thecodingmachine / magic-query

A very clever library to use SQL prepared statement with a variable number of parameters... and much more!
http://mouf-php.com/packages/mouf/magic-query/README.md
22 stars 14 forks source link

edited the way duplicated foreignKey are detected #49

Closed Kharhamel closed 5 years ago

Kharhamel commented 5 years ago

Edited the way duplicated foreignKey are detected when constructing the complete path of a magic join.

This solves a hard to track bug where the magic join wouldn't generate a valid FROM clause

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 68.395% when pulling ad3adcad5a5583f7a4ab20f508372058b33d616f on Kharhamel:editForeignKeyCheck into 2de0175d704d0092c20b52536c6aaf3dbb4d77bd on thecodingmachine:1.3.