From 54f961f7a37fd7bd90f946ae9fe694845ca8a7ed Mon Sep 17 00:00:00 2001 From: Anthony Gauthier Date: Thu, 28 Mar 2019 13:22:34 -0400 Subject: [PATCH] fixed typo --- .env | 2 +- src/MySimpleORM/Mapper/ObjectMapping.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index badcf1b..2a4209d 100644 --- a/.env +++ b/.env @@ -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 \ No newline at end of file +# export DB_HOST=167.114.128.82 && export DB_USERNAME=ag325 && export DB_PASSWORD=a_password123! && export DB_DATABASE=testdb && export DB_PORT=3306 \ No newline at end of file diff --git a/src/MySimpleORM/Mapper/ObjectMapping.php b/src/MySimpleORM/Mapper/ObjectMapping.php index a04a48c..c0f8b8a 100644 --- a/src/MySimpleORM/Mapper/ObjectMapping.php +++ b/src/MySimpleORM/Mapper/ObjectMapping.php @@ -211,7 +211,7 @@ public function mapObject(&$obj, $rows, &$objArr = null) foreach ($rows as $row) { // reset the object reference - $class = get_class($o); + $class = get_class($obj); $this->Object = new $class(); foreach ($attributes as $key => $attribute) {