github DirectoryTree/LdapRecord v2.0.0

latest releases: v3.6.4, v3.6.3, v3.6.2...
3 years ago

Upgrade Guide

https://ldaprecord.com/docs/core/v2/upgrading/

Removed

  • $sync parameter for the following Model methods:
    • Model::createAttribute()
    • Model::updateAttribute()
    • Model::deleteAttribute()

Changed

  • Model::asDateTime() parameter order swapped - 1ce30dc
  • Merged HasLogger and DispatchesEvents traits with Container - 1dc01ed
  • Model::synchronize() renamed to Model::refresh() - 62dc51d
  • Model::refresh() must now be done manually if needed. This was done to make operations more performant - 62dc51d - #192
  • ObjectNotFoundException is now thrown when using orFail() methods on raw Connection queries.
    • This does not affect model queries. - 0177c4f
  • ModelNotFoundException now extends ObjectNotFoundException - 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()
  • Moved Relation::exists() and Relation::contains() methods into new query collection: Models\Collection
    • This means you can now call exists() and contains() on any resulting model collection - 4fbe6e5

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 via DomainConfiguration::extend() - 8f96bbe - #207
  • Ability to flush all connections from the connection Container - 879d426
  • OpenLDAP\User::groups() relationship - 942cb48 - DirectoryTree/LdapRecord-Laravel#217

Don't miss a new LdapRecord release

NewReleases is sending notifications on new releases.