diff --git a/EMongoDocument.php b/EMongoDocument.php index 741f52b..3f25d9a 100644 --- a/EMongoDocument.php +++ b/EMongoDocument.php @@ -435,8 +435,6 @@ protected function beforeFind() if($this->hasEventHandler('onBeforeFind')) { $event = new CModelEvent($this); - // for backward compatibility - $event->criteria = func_num_args() > 0 ? func_get_arg(0) : null; $this->onBeforeFind($event); } }