lib/MongoLite/Collection.php
public function findOne($criteria = null, $projection = null) {

        $items = $this->find($criteria, $projection)->limit(1)->toArray();

        return isset($items[0]) ? $items[0]:null;
    }
public function findOne($criteria = null, $projection = null) {

        $items = $this->find($criteria, $projection)->limit(1)->toArray();

        return isset($items[0]) ? $items[0]:null;
    }
public function findOne ( $ criteria = null , $ projection = null ) { $ items = $ this -> find ( $ criteria , $ projection ) -> limit ( 1 ) -> toArray ( ) ; return isset ( $ items [ 0 ] ) ? $ items [ 0 ] : null ; }
Find one document

@param  mixed $criteria
@return array
Find one document