simplePaginate
pagination method for quicker performance when total records or total pages are not needed or too slow.BelongsToMany
relationship.initialThroughConstraints
for hasOne
relationships (used in *Through
relationships).ReturningKeyType
.CONCAT
when needed in *Through
relationships.WHERE EXISTS
over DISTINCT
when fetching relationships. DISTINCT
restricts some of the queries that can be run.whereHas
, and whereDoesntHave
callbacks now automatically group where clauses when an OR
combinator is detected.belongsToThrough
, hasOneThrough
, or hasManyThrough
.delete
naming collision.with
to QuickBuilder..from
) are now used for qualifying columns.quick
annotation instead of extending quick.models.BaseEntity
) has been removed. It was hardly used, and removing it allows us to simplify some of the code paths.accessors="true"
is now required on every entity. This is similar to above where requiring it allows us to simplify the codebase immensely. A helpful error message will be thrown if accessors="true"
is not present on your entity. defaultGrammar
mapping needs to be the full WireBox mapping, including the @qb
, if needed.MSSQLGrammar
would become [email protected]
.​
HasManyThrough
relationships now only accept a relationships
parameter of relationship methods to walk to get to the intended entity.loadRelationship
doesn't reload existing relationships.firstWhere
, firstOrNew
, firstOrCreate
, findOrNew
, and findOrCreate
.HasOne
, BelongsTo
, HasOneThrough
, and BelongsToThrough
relationships.reset
into reset
and resetToNew
methods.parameterLimits
to eager load.wheres
.hasRelationship
method to only return true for exact matches.onMissingMethod
fails.isDirty
.2.5.3
for unintended consequences with things like password hashing.)QueryBuilder
instance or nothing.)"set" & relationshipName