Skip to content
Discussion options

You must be logged in to vote

Hi @kaizirlewagen,

This might be due to your PHP instance running out of memory. Can you try with each instead (which utilizes chunking) and see what your results are?

\LdapRecord\Models\ActiveDirectory\User::each(function($user) {
    // Do something with the user.
}); 

You can also bump the memory on your php.ini to see if that's the cause:

memory_limit = 256M

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kaizirlewagen
Comment options

@stevebauman
Comment options

Answer selected by kaizirlewagen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants