Upgrade Guide
https://ldaprecord.com/docs/core/v2/upgrading/
Removed
$sync
parameter for the followingModel
methods:Model::createAttribute()
Model::updateAttribute()
Model::deleteAttribute()
Changed
Model::asDateTime()
parameter order swapped - 1ce30dc- Merged
HasLogger
andDispatchesEvents
traits withContainer
- 1dc01ed Model::synchronize()
renamed toModel::refresh()
- 62dc51dModel::refresh()
must now be done manually if needed. This was done to make operations more performant - 62dc51d - #192ObjectNotFoundException
is now thrown when usingorFail()
methods on rawConnection
queries.- This does not affect model queries. - 0177c4f
ModelNotFoundException
now extendsObjectNotFoundException
- 0177c4f- All critical LDAP operations now throw
LdapRecordException
upon failure - 8355c48 - #186- This means that the following
Model
methods now no longer return any value (void
):Model::save()
Model::update()
Model::delete()
Model::createAttribute()
Model::updateAttribute()
Model::deleteAttribute()
Model::rename()
Model::move()
- This means that the following
- Moved
Relation::exists()
andRelation::contains()
methods into new query collection:Models\Collection
- This means you can now call
exists()
andcontains()
on any resulting model collection - 4fbe6e5
- This means you can now call
Added
- Ability to delete specific values instead of only entire attributes when using
Model::deleteAttribute()
- 5faca5a - Ability to generate an account control query filter using
AccountControl::filter()
- 05fb42c - Ability to extend
DomainConfiguration
with custom options viaDomainConfiguration::extend()
- 8f96bbe - #207 - Ability to flush all connections from the connection
Container
- 879d426 OpenLDAP\User::groups()
relationship - 942cb48 - DirectoryTree/LdapRecord-Laravel#217