Prado\Data\SqlMap\TSqlMapGateway::queryForMap PHP Method

queryForMap() public method

Executes the SQL and retuns all rows selected in a map that is keyed on the property named in the keyProperty parameter. The value at each key will be the value of the property specified in the valueProperty parameter. If valueProperty is null, the entire result object will be entered.
public queryForMap ( $statementName, $parameter = null, $keyProperty = null, $valueProperty = null, $skip, $max ) : TMap
return TMap Array object containing the rows keyed by keyProperty.
    public function queryForMap($statementName, $parameter = null, $keyProperty = null, $valueProperty = null, $skip = -1, $max = -1)
    {
        $statement = $this->getSqlMapManager()->getMappedStatement($statementName);
        return $statement->executeQueryForMap($this->getDbConnection(), $parameter, $keyProperty, $valueProperty, $skip, $max);
    }