Permalink
Browse files

Another fix

  • Loading branch information...
beberlei committed Apr 8, 2013
1 parent d315cec commit 2c1b550d317a64a3447e7ee16d2f7e4f9114f5d3
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Doctrine/KeyValueStore/Storage/AzureSdkTableStorage.php
@@ -108,7 +108,7 @@ public function update($storageName, $key, array $data)
*/
public function delete($storageName, $key)
{
- list ($partitonKey, $rowKey) = $key;
+ list ($partitonKey, $rowKey) = array_values($key);
try {
$this->client->deleteEntity($storageName, $partitonKey, $rowKey);
@@ -125,7 +125,7 @@ public function delete($storageName, $key)
*/
public function find($storageName, $key)
{
- list ($partitonKey, $rowKey) = $key;
+ list ($partitonKey, $rowKey) = array_values($key);
try {
$result = $this->client->getEntity($storageName, $partitonKey, $rowKey);
@@ -209,7 +209,7 @@ private function quoteFilterValue($value)
*/
private function createEntity(array $key, array $data)
{
- list ($partitonKey, $rowKey) = $key;
+ list ($partitonKey, $rowKey) = array_values($key);
$entity = new Entity();
$entity->setPartitionKey((string)$partitonKey);

0 comments on commit 2c1b550

Please sign in to comment.