data
data copied to clipboard
Join class does not support joining tables by non-id fields
Currently we do not support joining tables by non-id fields because we don't know how to save records in such case.
See #802 and "Joining tables on non-id fields is not implemented yet" exception in Join
class.
@DarkSide666 can you please provide a minimalistic code to reproduce?
here is a repro code: https://github.com/atk4/data/blob/f89264b0b7667baacef0aad420b421907d1abe7d/tests/JoinSqlTest.php#L32-L36
Currently there are these problems:
-
Join::reverse = true
with join on non-ID field is not supported (Joining tables on non-id fields is not implemented yet
exception is thrown) - foreign ID field type is hardcoded to
integer
- join ID field type is hardcoded to
integer