You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having issues with chunking results from a LdapRecord\Models\ActiveDirectory\Group query.
For some reason, might me working as intended, I only get the Groups not the Members of the Groups when doing
ends up with $orig containing both LdapRecord\Models\ActiveDirectory\Group and LdapRecord\Models\ActiveDirectory\User objects ?
I'm out go get all members recursively, a.k.a. that is member of $groupName or any group that is member of $groupName.
Edit:
Actually further testing shows that chunk seem to completely overwrite recursive.
I did a test with $ldapGroup->members()->recursive()->each instead but ended up with the whole ldap tree instead of the selected group.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm having issues with chunking results from a
LdapRecord\Models\ActiveDirectory\Group
query.For some reason, might me working as intended, I only get the Groups not the Members of the Groups when doing
this result in
$objects
only containingLdapRecord\Models\ActiveDirectory\Group
objects.When doing the same query but skipping chunk
ends up with
$orig
containing bothLdapRecord\Models\ActiveDirectory\Group
andLdapRecord\Models\ActiveDirectory\User
objects ?I'm out go get all members recursively, a.k.a. that is member of
$groupName
or any group that is member of$groupName
.Edit:
Actually further testing shows that
chunk
seem to completely overwriterecursive
.I did a test with
$ldapGroup->members()->recursive()->each
instead but ended up with the whole ldap tree instead of the selected group.Beta Was this translation helpful? Give feedback.
All reactions