When there are two foreign keys on table Operator, one Operator.countryId -> Country.id and second Operator.countryId, Operator.regionOrder -> Region (id, order), when you want to order selection of operators by joined column, it throws notice Array to string conversion on /Database/Table/SqlBuilder.php:787.
Description
When there are two foreign keys on table
Operator
, oneOperator.countryId
->Country.id
and secondOperator.countryId
,Operator.regionOrder
->Region (id, order)
, when you want to order selection of operators by joined column, it throws noticeArray to string conversion
on/Database/Table/SqlBuilder.php:787
.Caution: It depends on order of foreign keys, in which they are stored in database.
Nette Database should choose simple key for joining, but now it chooses two-column foreign key (depends on order of FKs in DB).
Steps To Reproduce
The text was updated successfully, but these errors were encountered: