From fab70aec6a11cbf1c2c0449fa1f81882cabdb93f Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Fri, 17 Nov 2023 08:18:52 -0500 Subject: [PATCH] fixed a missing alias --- src/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repository.php b/src/Repository.php index 535d353..349e42e 100644 --- a/src/Repository.php +++ b/src/Repository.php @@ -606,7 +606,7 @@ class Repository $pkField = key($primaryKeyField); - return $this->where($this->entityClass::field($primaryKeyField[$pkField]->name ?? $pkField, false), $value); + return $this->where($this->entityClass::field($primaryKeyField[$pkField]->name ?? $pkField, $alias), $value); } public function withJoin(string|array $fields, array $options = []) : self