/** * 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 Zend_Cloud_DocumentService_Exception('Invalid document key'); } $this->_azureSelect->wherePartitionKey($value[0])->whereRowKey($value[1]); return $this; }
/** * 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)) { require_once PHP_LIBRARY_PATH . 'Zend/Cloud/DocumentService/Exception.php'; throw new Zend_Cloud_DocumentService_Exception('Invalid document key'); } $this->_azureSelect->wherePartitionKey($value[0])->whereRowKey($value[1]); return $this; }