protected function getKeysFromResults(array $results, $key = null)
    {
        if (is_null($key)) {
            $key = $this->parentMap->getKeyName();
        }

        return array_unique(array_values(array_map(function ($value) use ($key) {
            return $value[$key];
        }, $results)));
    }
protected function getKeysFromResults(array $results, $key = null)
    {
        if (is_null($key)) {
            $key = $this->parentMap->getKeyName();
        }

        return array_unique(array_values(array_map(function ($value) use ($key) {
            return $value[$key];
        }, $results)));
    }
protected function getKeysFromResults ( array $ results , $ key = null ) { if ( is_null ( $ key ) ) { $ key = $ this -> parentMap -> getKeyName ( ) ; } return array_unique ( array_values ( array_map ( function ( $ value ) use ( $ key ) { return $ value [ $ key ] ; } , $ results ) ) ) ; }
Get all the keys from a result set.

@param array  $results
@param string $key

@return array
Get all the keys from a result set .