1.47.0 - Relax restrictions on ModelAlias use and join conditions
What's Changed
Relax restrictions on ModelAlias use and join conditions by @gwynne in #593
- Relaxes most of Fluent’s filter operators to only require
Schema
conformance rather thanModel
. This enablesModelAlias
usage with all operators that it previously didn’t work for.- Enables all model value filters in joins (e.g.
join(Foo.self, on: \Foo.$bar.$id == \Bar.$id && \Bar.$value > 4)
).- Adds
.sql(raw:)
,.sql(embed:)
, and.sql(_:)
for Fluent joins.(Note: Not a semver-major break because the new generic requirements on operators are always strict supersets of the old ones.)
This patch was released by @gwynne
Full Changelog: 1.46.0...1.47.0