Skip to content

Commit ac1b4fe

Browse files
committed
Bugfix incorrect method name
1 parent 1d8acce commit ac1b4fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Traits/ModelTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,14 @@ protected function addRelations($rows): ?array
212212
// If there were no matches then reset per-query data and quit
213213
if (empty($rows))
214214
{
215-
$this->tmpReset();
215+
$this->resetTmp();
216216
return $rows;
217217
}
218218

219219
// Likewise for empty singletons
220220
if (count($rows) == 1 && reset($rows) == null)
221221
{
222-
$this->tmpReset();
222+
$this->resetTmp();
223223
return $rows;
224224
}
225225

@@ -246,7 +246,7 @@ protected function addRelations($rows): ?array
246246
if (empty($this->tmpWith))
247247
{
248248
$rows = $this->tmpReindex ? $this->simpleReindex($rows) : $rows;
249-
$this->tmpReset();
249+
$this->resetTmp();
250250
return $rows;
251251
}
252252

0 commit comments

Comments
 (0)