frankdejonge / Monga

MongoDB Abstaction UNMAINTAINED, go here ->

Home Page:http://github.com/thephpleague/monga

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

incomprehensible error

stuchin opened this issue · comments

part of my code:

$email = "proba@proba.ru";
$user_count = $collection->find(function($query){ $query->where('email', $email);
});

and I get the error
notice
Fuel\Core\PhpErrorException [ Notice ]: Undefined variable: email

where I was wrong?

$user_count = $collection->find(function($query) use ($email) { $query->where('email', $email); } );
👯