Skip to content

Releases: DirectoryTree/LdapRecord

v1.10.1

08 Sep 16:59
601e2fb
Compare
Choose a tag to compare

Added

v1.10.0

18 Aug 15:49
Compare
Choose a tag to compare

Changed

  • Automatically populate models new distinguished name upon $model->rename() - #187 - 7d302d2

Fixed

  • Determine related models irrespective of the object class ordering of search results - #178 - f00d925
  • Updated relation bypass exceptions for OpenLDAP support - #180 - 963581b
  • Accessors not working with $model->getFirstAttribute() - #182 - 8f392f0
  • Properly determine attribute existence when attribute is null - #183 - 983f5f1
  • Avoid retrieving mutated attribute in hasAttribute() method - #189 - 7c57ed2
  • Update models name in $original attributes upon a $model->rename() #190 - e24ca23...8f8829c

Added

v1.9.0

07 Jul 16:49
Compare
Choose a tag to compare

Fixed

Added

  • Ability to create local model query scopes by defining a method prefixed with scope, i.e. scopeExhangeUsers - a652a85
  • User::whereHasMailbox() query scope - Thanks to @grantholle - 1e281c2
  • $relation->contains() method to determine if a relationship contains a model, distinguished name or common name i.e.
    $user->groups()->contains('Accounting'). You may also pass an array of any combination of the above to determine if the relation contains any of the given.

Changed

  • The $relation->exists() method can now accept a distinguished name and common name, where it previously only accepted a Model instance. You may now also pass an array of any combination of the above to determine if the relation contains all of the given.

v1.8.2

24 Jun 14:12
Compare
Choose a tag to compare

Fixed

v1.8.1

14 Jun 20:27
a1ea238
Compare
Choose a tag to compare

Fixed

  • Conflicting variable names in Relation method - #162 - ad4909f - Thanks to @AlexH269

v1.8.0

11 Jun 20:24
ae3b6bf
Compare
Choose a tag to compare

Added

  • Primary groups will now be included with AD Computer groups relation results - e0d081c
  • DetailedError's are now accessible on all LdapRecord exceptions - 3216211
  • Several exceptions have been added to catch different causes of LDAP modification failures, providing an easier debugging experience:
    • LdapRecord\Exceptions\AlreadyExistsException
    • LdapRecord\Exceptions\InsufficientAccessException
    • LdapRecord\Exceptions\ConstraintViolationException
    • 60d3b23

Fixed

  • Relations not returning proper model instances with alternate casing defined in their respective models $objectClasses property
  • Reset integers (-1, 0) can now be properly set on model attributes, such as pwdlastset

v1.7.2

27 May 13:18
Compare
Choose a tag to compare

Fixed

  • Active Directory User primary groups are now merged with their groups() relation results - #139 - 421819b
  • Prevent invalid empty batch modifications from being added to models - #141 - f7792ae, 36158e9, 9ec2891

v1.7.1

18 May 19:02
Compare
Choose a tag to compare

Fixed

  • Properly use LDAP_MOD_BATCH_ADD and LDAP_MOD_BATCH_REMOVE when adding / removing values to prevent always issuing an LDAP_MOD_BATCH_REPLACE

Added

  • $model->encodeAttributes() method - 9178cae

v1.7.0

03 May 21:14
643c433
Compare
Choose a tag to compare

Fixed

  • Model::isAncestorOf and Model::isDescendantOf now properly checks recursively - #127 - 1d7109d

Added

  • Model::isChildOf and Model::isParentOf have been added to determine immediate ascendant or descendant models - 1d7109d
  • Models\Attributes\DistinguishedName class has been added to perform comparison operations on Distinguished Names - 1d7109d

v1.6.1

29 Apr 17:44
Compare
Choose a tag to compare

Fixed