public static function fetch($input): array
    {
        $output = [];
        $map = [];
        foreach ($input as $i => $row) {
            $model = '';
            foreach ($row as $key => $value) {
                if (strpos($key, '__') === 0) {
                    $model = substr($key, 2);
                    continue;
                }
                $map[$i][$model][$key] = $value;
            }
            foreach ($map[$i] as $model => &$data) {
                $data = self::createRow($model, $data);
            }
            $output[] = $map;
        }
        return $output;
    }
public static function fetch($input): array
    {
        $output = [];
        $map = [];
        foreach ($input as $i => $row) {
            $model = '';
            foreach ($row as $key => $value) {
                if (strpos($key, '__') === 0) {
                    $model = substr($key, 2);
                    continue;
                }
                $map[$i][$model][$key] = $value;
            }
            foreach ($map[$i] as $model => &$data) {
                $data = self::createRow($model, $data);
            }
            $output[] = $map;
        }
        return $output;
    }
public static function fetch ( $ input ) : array { $ output = [ ] ; $ map = [ ] ; foreach ( $ input as $ i => $ row ) { $ model = '' ; foreach ( $ row as $ key => $ value ) { if ( strpos ( $ key , '__' ) === 0 ) { $ model = substr ( $ key , 2 ) ; continue ; } $ map [ $ i ] [ $ model ] [ $ key ] = $ value ; } foreach ( $ map [ $ i ] as $ model => & $ data ) { $ data = self :: createRow ( $ model , $ data ) ; } $ output [ ] = $ map ; } return $ output ; }
Fetch by Divider

@param  array $input

@return array
@throws Exception\RelationNotFoundException
Fetch by Divider