protected function sequentialArrayToKey(array $array)
    {

        if ($this->isObjectAndId($array)) {
            return get_class($array[0]) . '-' . $array[1];
        }

        $parts = [];

        foreach ($array as $value) {
            $parts[] = $this->castArrayValue($this->key($value));
        }

        return implode('_', $parts);
    }
protected function sequentialArrayToKey(array $array)
    {

        if ($this->isObjectAndId($array)) {
            return get_class($array[0]) . '-' . $array[1];
        }

        $parts = [];

        foreach ($array as $value) {
            $parts[] = $this->castArrayValue($this->key($value));
        }

        return implode('_', $parts);
    }
protected function sequentialArrayToKey ( array $ array ) { if ( $ this -> isObjectAndId ( $ array ) ) { return get_class ( $ array [ 0 ] ) . '-' . $ array [ 1 ] ; } $ parts = [ ] ; foreach ( $ array as $ value ) { $ parts [ ] = $ this -> castArrayValue ( $ this -> key ( $ value ) ) ; } return implode ( '_' , $ parts ) ; }
Turns an strictly sequential array into a key.

@param array $array

@return string
Turns an strictly sequential array into a key .