refactored MongoModel to hide fetch method, fixed PHPDoc errors

This commit is contained in:
Anton Grebnev
2012-10-19 20:15:26 +04:00
parent efb6c2d34c
commit 11a5968105
14 changed files with 436 additions and 187 deletions

View File

@ -83,6 +83,7 @@ class MySQLiStatement extends DbStatement
*
* @param mixed $style
* @return mixed
* @throws GeneralException
*/
public function fetch($style = Db::FETCH_OBJ)
{
@ -90,7 +91,6 @@ class MySQLiStatement extends DbStatement
return false;
}
$row = false;
switch ($style) {
case Db::FETCH_OBJ:
$row = $this->result->fetch_object();
@ -112,6 +112,7 @@ class MySQLiStatement extends DbStatement
/**
* @param string $class
* @return object
*/
public function fetchObject($class = 'stdClass')
{