public function update(TodoEntity $entity) { $affected = $this->pdo->perform('UPDATE todo SET userId = :userId, description = :description WHERE todoId = :todoId', $entity->getData()); return (bool) $affected; }