Questions tagged [soft-delete]

Soft delete is to delete data from database in a way in which it can be recovered in the future rather than permanently deleting the data,

Soft delete, in database terminology, means to delete data from a database by generally marking it with flag like isDeleted rather than permanently deleting data. Soft delete helps in preserving data such that it can be recovered in the future rather than actually deleting it. Soft deleting also prevents accidental data losses.

367 questions
0
votes
1 answer

Symfony2/Doctrine - Disabling Softdeletable fiter only worked every other time

I'm using the Softdeleteable doctrine filter, however I have a method to remove all records from the database that should disable the filter before removing records. It only seems to work every other time it's run though (once the records have…
TobyG
  • 1,692
  • 3
  • 21
  • 36
0
votes
2 answers

Cascading soft deletes with laravel 4 not working as expected

I'm attempting to make cascading soft deletes work by overriding each model's delete() function, which I think should cascade down from Project to Version to Link, but the problem is it doesn't seem to do that at all. The idea would be that deleting…
Samsquanch
  • 8,866
  • 12
  • 50
  • 89
0
votes
2 answers

WPF: Soft deletes and binding?

I have custom objects which implement INotifyProperyChanged and now I'm wondering if it is possible to implement soft delete which would play nicely with binding? Each object would have a IsDeleted property and if this property is set to true than…
aks
  • 292
  • 1
  • 5
  • 12
0
votes
0 answers

Method to hard delete nodes in BST with lazy deletion

I have an assignment in class where we are implementing a BST with lazy deletion. When a node is removed it is just flagged as deleted and not actually removed from the tree. We have to create a method for the case when we want to actually hard…
trevww
  • 1
  • 3
0
votes
2 answers

Symfony2 gedmo Soft Deleteable relation retrieval not working properly

I am using the soft-Deletable extension and all is working fine, except for 1 thing. When I am doing the following equals true (Pseudocode): null == $fooRepository->findByCriteria('criteria to find deleted entity'); But the following equals…
Adam
  • 675
  • 5
  • 25
0
votes
1 answer

Per user soft-delete model design in Django

I am designing an application where users send/receive records and I would like deletes to be separated for each user listed in the record (one user's delete will not hide the record from the other user). My base model design looks like this: class…
kevins
  • 472
  • 6
  • 17
0
votes
1 answer

How to implement soft deletion in DataGridView

I have a DataGridView bound to a object data source. The object has a property "IsDeleted". When the user presses the delete key, or clicks the delete button, or deletes a row in some other way, i want to set the "IsDeleted" flag instead of removing…
DanielOfTaebl
  • 713
  • 5
  • 13
0
votes
1 answer

Symfony 1.4- Doctrine Soft Delete Functionality

I want to override "soft delete" functionality in symfony 1.4-Doctrine ORM. I got the file path: lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Template/Listener/SoftDelete.php But i am not able to override the same…
0
votes
0 answers

Soft Delete. Update multiple `deleteAttribute` from joining table?

I have followed a blog post to implement soft delete behavior in yii and it work well. here's some snippet: class extends CActiveRecord { public function behaviors { return array( 'SoftDeleteBehavior' =>…
Wildan Muhlis
  • 1,553
  • 2
  • 22
  • 43
0
votes
1 answer

Any benefit to deleting a soft-deleted row in MySQL?

I have a table in MySQL dB that records when a person clicks on certain navigation tabs. Each time it will soft-delete the last entry and insert a new one. The reason for soft-delete is for analytics purposes, so I can track over time…
828
  • 1,140
  • 1
  • 12
  • 21
0
votes
1 answer

C#, Entity Framework and delete child registers in SQL Server 2008

I know that in SQL Server I can use delete on cascade when I delete a parent row in a table, but in some places I read that is better to implement this logic in the application (repository) instead of delete on cascade in SQL Server. So I have two…
Álvaro García
  • 18,114
  • 30
  • 102
  • 193
0
votes
2 answers

Redirect to another page if the url hash unid document is soft deleted using the dynamic content control in exlib

I am using dynamic content control in extlib. one good feature of this control is that it connects the data source automatically from the documentId in url, like…
Thomas Adrian
  • 3,543
  • 6
  • 32
  • 62
-1
votes
1 answer

Why I cant perform soft delete?

I want to flag character to false in DB and retrieve the true ones. this is what I did I declare bool IsDeleted { get; set; } = true character service public async Task>> sDeleteCharacter(int id) { …
-1
votes
1 answer

what would be the best practice for http request in webapi project with softdelete

I am working on a webapi .Net5 project. I am using SQLserver and EF5 to store my entities. Each of my entities has a property called IsDeleted, which I use for remove(IsDeleted=true) and restore(IsDeleted=false). I am a bit confused which http…
-1
votes
1 answer

how to apply SoftDeletable on child entity using symfony 4

i want to get users with their posts(not soft-deleted) the user has many posts return $this->em->getRepository(Users::class)->find($userId); when i get the result i the posts with deletedAt!=null are returned , but when i get only list of posts…
1 2 3
24
25