Exemple #1
0
 /**
  * WHERE clause for item ID
  *
  * This one should be used when fetching specific rows since some adapters
  * have special syntax for primary keys
  *
  * @param  array $value Row ID for the document (PartitionKey, RowKey)
  * @return \Zend\Cloud\DocumentService\Adapter\WindowsAzure\Query
  */
 public function whereId($value)
 {
     if (!is_array($value)) {
         throw new Exception\InvalidArgumentException('Invalid document key');
     }
     $this->_azureSelect->wherePartitionKey($value[0])->whereRowKey($value[1]);
     return $this;
 }