From 8fa021245c1263640b648f4817e1b60ef3962bf8 Mon Sep 17 00:00:00 2001 From: Theodore Brown Date: Sat, 5 Oct 2024 21:50:57 -0500 Subject: [PATCH] Update to PeachySQL 6.3 --- composer.json | 2 +- src/Entities.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 027160e..31a6fdc 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "ext-json": "*", "psr/http-message": "^1.1 || ^2.0", "shrikeh/teapot": "^2.3.1", - "theodorejb/peachy-sql": "^6.1" + "theodorejb/peachy-sql": "^6.3" }, "require-dev": { "phpunit/phpunit": "^9.6", diff --git a/src/Entities.php b/src/Entities.php index 9f2f792..d9f6d47 100644 --- a/src/Entities.php +++ b/src/Entities.php @@ -284,7 +284,7 @@ public function addEntities(array $entities): array } try { - $ids = $this->db->insertRows($this->getTableName(), $rows, $this->getIdentityIncrement())->getIds(); + $ids = $this->db->insertRows($this->getTableName(), $rows, $this->getIdentityIncrement())->ids; foreach ($existingIds as $offset => $id) { array_splice($ids, $offset, 0, [$id]); }