Spot\Query::fieldWithAlias PHP Method

fieldWithAlias() public method

Get field name with table alias appended
public fieldWithAlias ( string $field, boolean $escaped = true ) : string
$field string
$escaped boolean
return string
    public function fieldWithAlias($field, $escaped = true)
    {
        $fieldInfo = $this->_mapper->entityManager()->fields();
        // Determine real field name (column alias support)
        if (isset($fieldInfo[$field])) {
            $field = $fieldInfo[$field]['column'];
        }
        $field = $this->_tableName . '.' . $field;
        return $escaped ? $this->escapeIdentifier($field) : $field;
    }