protected function _addDefaultSelectTypes()
    {
        $typeMap = $this->getTypeMap()->getDefaults();
        $select = $this->clause('select');
        $types = [];

        foreach ($select as $alias => $value) {
            if (isset($typeMap[$alias])) {
                $types[$alias] = $typeMap[$alias];
                continue;
            }
            if (is_string($value) && isset($typeMap[$value])) {
                $types[$alias] = $typeMap[$value];
            }
            if ($value instanceof TypedResultInterface) {
                $types[$alias] = $value->getReturnType();
            }
        }
        $this->getSelectTypeMap()->addDefaults($types);
    }
protected function _addDefaultSelectTypes()
    {
        $typeMap = $this->getTypeMap()->getDefaults();
        $select = $this->clause('select');
        $types = [];

        foreach ($select as $alias => $value) {
            if (isset($typeMap[$alias])) {
                $types[$alias] = $typeMap[$alias];
                continue;
            }
            if (is_string($value) && isset($typeMap[$value])) {
                $types[$alias] = $typeMap[$value];
            }
            if ($value instanceof TypedResultInterface) {
                $types[$alias] = $value->getReturnType();
            }
        }
        $this->getSelectTypeMap()->addDefaults($types);
    }
protected function _addDefaultSelectTypes ( ) { $ typeMap = $ this -> getTypeMap ( ) -> getDefaults ( ) ; $ select = $ this -> clause ( 'select' ) ; $ types = [ ] ; foreach ( $ select as $ alias => $ value ) { if ( isset ( $ typeMap [ $ alias ] ) ) { $ types [ $ alias ] = $ typeMap [ $ alias ] ; continue ; } if ( is_string ( $ value ) && isset ( $ typeMap [ $ value ] ) ) { $ types [ $ alias ] = $ typeMap [ $ value ] ; } if ( $ value instanceof TypedResultInterface ) { $ types [ $ alias ] = $ value -> getReturnType ( ) ; } } $ this -> getSelectTypeMap ( ) -> addDefaults ( $ types ) ; }
Sets the default types for converting the fields in the select clause

@return void
Sets the default types for converting the fields in the select clause