Skip to content

Commit

Permalink
Merge pull request #20 from purplekrayons/master
Browse files Browse the repository at this point in the history
bugfix: remove empty array values from partition key properties
  • Loading branch information
jupitern authored May 31, 2019
2 parents 63be2c0 + da418e8 commit 8941e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public function findPartitionValue(object $document, bool $toString = false)
if ($this->isNested($this->partitionKey)) {

# explode the key into its properties
$properties = explode("/", $this->partitionKey);
$properties = array_values(array_filter(explode("/", $this->partitionKey)));

# return the property structure
# formatted as a cosmos query string
Expand Down

0 comments on commit 8941e58

Please sign in to comment.