refactored MongoModel to hide fetch method, fixed PHPDoc errors
This commit is contained in:
@ -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')
|
||||
{
|
||||
|
Reference in New Issue
Block a user