Skip to content

Commit 54f961f

Browse files
fixed typo
1 parent de39c30 commit 54f961f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# export MYSQL_HOST=167.114.128.82 && export MYSQL_USERNAME=ag325 && export MYSQL_PASSWORD=a_password123! && export MYSQL_DATABASE=testdb && export MYSQL_PORT=3306
1+
# export DB_HOST=167.114.128.82 && export DB_USERNAME=ag325 && export DB_PASSWORD=a_password123! && export DB_DATABASE=testdb && export DB_PORT=3306

src/MySimpleORM/Mapper/ObjectMapping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function mapObject(&$obj, $rows, &$objArr = null)
211211

212212
foreach ($rows as $row) {
213213
// reset the object reference
214-
$class = get_class($o);
214+
$class = get_class($obj);
215215
$this->Object = new $class();
216216

217217
foreach ($attributes as $key => $attribute) {

0 commit comments

Comments
 (0)