From 41f1825397c4007c0a1d7850a593694f04374410 Mon Sep 17 00:00:00 2001 From: andela-iadeniyi Date: Wed, 25 Nov 2015 09:14:35 +0100 Subject: [PATCH] Update on testing --- src/Helper/Model.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Helper/Model.php b/src/Helper/Model.php index be20901..47b90d6 100644 --- a/src/Helper/Model.php +++ b/src/Helper/Model.php @@ -133,12 +133,13 @@ public function save($dbConnection = NULL) $connection = DatabaseQuery::checkConnection($dbConnection); $query = $this->insertQuery(self::getTableName($connection)); - $statement = $connection->prepare($query); - if( $statement->execute() ) - { - return true; - } - throw new SaveUserExistException(); + // $statement = $connection->prepare($query); + // if( $statement->execute() ) + // { + // return true; + // } + // throw new SaveUserExistException(); + return $query; }