Skip to content

Commit

Permalink
Fix test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed May 19, 2024
1 parent c007096 commit 903cc95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/BaseActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,12 @@ public function optimisticLock(): string|null
public function populateRecord(array|object $row): void
{
foreach ($row as $name => $value) {
$this->$name = $value;
if (property_exists($this, $name)) {
$this->$name = $value;
} else {
$this->attributes[$name] = $value;
}

$this->oldAttributes[$name] = $value;
}

Expand Down

0 comments on commit 903cc95

Please sign in to comment.