lib/Doctrine/KeyValueStore/Storage/DynamoDbStorage.php
private function prepareKey($storageName, $key)
    {
        if (is_array($key)) {
            $keyValue = reset($key);
            $keyName  = key($key);
        } else {
            $keyValue = $key;
            $keyName  = $this->getKeyNameForTable($storageName);
        }

        return $this->marshaler->marshalItem([$keyName => $keyValue]);
    }
private function prepareKey($storageName, $key)
    {
        if (is_array($key)) {
            $keyValue = reset($key);
            $keyName  = key($key);
        } else {
            $keyValue = $key;
            $keyName  = $this->getKeyNameForTable($storageName);
        }

        return $this->marshaler->marshalItem([$keyName => $keyValue]);
    }
private function prepareKey ( $ storageName , $ key ) { if ( is_array ( $ key ) ) { $ keyValue = reset ( $ key ) ; $ keyName = key ( $ key ) ; } else { $ keyValue = $ key ; $ keyName = $ this -> getKeyNameForTable ( $ storageName ) ; } return $ this -> marshaler -> marshalItem ( [ $ keyName => $ keyValue ] ) ; }
Prepares a key to be in a valid format for lookups for DynamoDB. If passing an array, that means that the key
is the name of the key and the value is the actual value for the lookup.

@param string $storageName Table name.
@param string $key         Key name.

@return array The key in DynamoDB format.
Prepares a key to be in a valid format for lookups for DynamoDB . If passing an array that means that the key is the name of the key and the value is the actual value for the lookup .