Vote count:
0
I have use libraries php mongodb with codeigniter when I use limit(1) it return result array empty but when I use limit(2) or limit(n) the return result is correct to me I don know why? below is my code to use:
$resutl = $this->mongo_db->limit(1)->get('UserProfile');
Info Library:
/**
* CodeIgniter MongoDB Active Record Library
*
* A library to interface with the NoSQL database MongoDB. For more information see mongodb.org
*
* @package CodeIgniter
* @author Alex Bilbie
* @copyright Copyright (c) 2010, Alex Bilbie.
* @license http://ift.tt/j1ALGl
* @link http://alexbilbie.com
* @version Version 0.5.2
*
* Thanks to Kyle Dye (kyledye.com), Nick Jackson (nickjackson.me), Mikhail Kozlov (mikhailkozlov.com) and Phil Sturgeon (philsturgeon.co.uk) for additional help
*/
MongDB limit(1) it return result array empty
Aucun commentaire:
Enregistrer un commentaire