public function fetchObject($name='stdClass', $ctor_args=null)
    {
        try {
            $data = $this->fetch(\PDO::FETCH_ASSOC);
            return $this->_createObjectFromData($name, $data);
        } catch (\Exception $e) {
            return null;
        }
    }
public function fetchObject($name='stdClass', $ctor_args=null)
    {
        try {
            $data = $this->fetch(\PDO::FETCH_ASSOC);
            return $this->_createObjectFromData($name, $data);
        } catch (\Exception $e) {
            return null;
        }
    }
public function fetchObject ( $ name = 'stdClass' , $ ctor_args = null ) { try { $ data = $ this -> fetch ( \ PDO :: FETCH_ASSOC ) ; return $ this -> _createObjectFromData ( $ name , $ data ) ; } catch ( \ Exception $ e ) { return null ; } }
Fetch data and create an object

@param string $name      class name
@param mixed  $ctor_args constructor args

@return mixed object
Fetch data and create an object