Skip to content

Commit

Permalink
Merge pull request #13 from andela-iadeniyi/1.0.0
Browse files Browse the repository at this point in the history
Update on testing
  • Loading branch information
Adeniyi Ibraheem committed Nov 25, 2015
2 parents e30db1a + 41f1825 commit 245fbf6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Helper/Model.php
Expand Up @@ -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;

}

Expand Down

0 comments on commit 245fbf6

Please sign in to comment.