Exemplo n.º 1
0
 public function delete(\Model\Entities\User $user)
 {
     $deleteQuery = "DELETE FROM {$this->tableName} WHERE id = ?";
     $statement = $this->connection->prepare($deleteQuery);
     $statement->bindValue(1, $user->getId());
     $statement->execute();
 }