Exemplo n.º 1
0
 public function update(\Model\Entities\User $user)
 {
     $updateQuery = "UPDATE {$this->tableName} SET email = ?, password = ? WHERE id = ?";
     $statement = $this->connection->prepare($updateQuery);
     $statement->bindValue(1, $user->getEmail());
     $statement->bindValue(2, $user->getPassword());
     $statement->bindValue(3, $user->getId());
     $statement->execute();
 }