src/Readdle/Database/FQDBQueryAPI.php
public function queryObjArray($query, $className, $options = array(), $classConstructorArguments = NULL)
    {
        if (!class_exists($className)) {
            $this->_error(FQDBException::CLASS_NOT_EXIST, FQDBException::FQDB_CODE);
        }

        return $this->queryArray($query, $options,
            function(\PDOStatement $statement) use ($className, $classConstructorArguments) {
                return $statement->fetchAll(\PDO::FETCH_CLASS | \PDO::FETCH_PROPS_LATE,
                    $className, $classConstructorArguments);
            }
        );
    }
public function queryObjArray($query, $className, $options = array(), $classConstructorArguments = NULL)
    {
        if (!class_exists($className)) {
            $this->_error(FQDBException::CLASS_NOT_EXIST, FQDBException::FQDB_CODE);
        }

        return $this->queryArray($query, $options,
            function(\PDOStatement $statement) use ($className, $classConstructorArguments) {
                return $statement->fetchAll(\PDO::FETCH_CLASS | \PDO::FETCH_PROPS_LATE,
                    $className, $classConstructorArguments);
            }
        );
    }
public function queryObjArray ( $ query , $ className , $ options = array ( ) , $ classConstructorArguments = NULL ) { if ( ! class_exists ( $ className ) ) { $ this -> _error ( FQDBException :: CLASS_NOT_EXIST , FQDBException :: FQDB_CODE ) ; } return $ this -> queryArray ( $ query , $ options , function ( \ PDOStatement $ statement ) use ( $ className , $ classConstructorArguments ) { return $ statement -> fetchAll ( \ PDO :: FETCH_CLASS | \ PDO :: FETCH_PROPS_LATE , $ className , $ classConstructorArguments ) ; } ) ; }
executes SELECT or SHOW query and returns result as array of objects of given class
@param string $query
@param string $className
@param array $options
@param array $classConstructorArguments
@return array
executes SELECT or SHOW query and returns result as array of objects of given class