Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model::find(NULL) throws an exception #42

Closed
alexandre-butynski opened this issue Sep 17, 2013 · 1 comment
Closed

Model::find(NULL) throws an exception #42

alexandre-butynski opened this issue Sep 17, 2013 · 1 comment

Comments

@alexandre-butynski
Copy link
Contributor

The find method doesn't support NULL as parameter. The expected behavior is to return NULL (as Eloquent does).

"error": {
  "type":"ErrorException",
  "message":"Undefined index: value",
  "file":"...\/vendor\/jenssegers\/mongodb\/src\/Jenssegers\/Mongodb\/Builder.php",
  "line":587
}

I don't see a simple patch right now. I just start using your package and I hope help you more later.

jenssegers added a commit that referenced this issue Sep 21, 2013
@jenssegers
Copy link
Contributor

Sorry for the delay, this is now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants