Prado\Data\SqlMap\Statements\IMappedStatement::executeQueryForMap PHP Method

executeQueryForMap() 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 executeQueryForMap ( $connection, $parameter, $keyProperty, $valueProperty = null ) : TMap
return TMap A map of object containing the rows keyed by $keyProperty.
    public function executeQueryForMap($connection, $parameter, $keyProperty, $valueProperty = null);