laravel-ardent / ardent

Self-validating, secure and smart models for Laravel's Eloquent ORM
BSD 3-Clause "New" or "Revised" License
1.39k stars 211 forks source link

memory exhausted (again) #283

Closed paul-crashley closed 8 years ago

paul-crashley commented 8 years ago

I'm getting the 'Fatal error: Allowed memory...' error when trying to use find() on a model.

Latest version of Ardent in Lumen.

The find() method in LaravelArdent\Ardent\Ardent recursively calls itself due to the __callStatic magic method in Eloquent.

The ardent find() method needs removing, or renaming to something else e.g. findOne()