Trash icon indicating copy to clipboard operation
Trash copied to clipboard

Adds soft-delete support to CakePHP ORM.

Results 8 Trash issues
Sort by recently updated
recently updated
newest added

…and modify emptyTrash method to adapt to new changes, preserving backward compatibility. Add related info to readme.

I'm using CakePHP 3.10.4, Compras (purchases) -> hasMany -> Carritos (cart items) -> hasMany -> Entradas (show tickets) If any purchase is deleted "soft delete with delete()", purchase, cart items...

enhancement

Using Cakephp 3.8 and FriendOfCake Crud. If I understand correctly, the Trash behavior passes through all $rules->add and $rules->addUpdate. Does it pass through $rules->addDelete ? Could we avoid passing through...

Steps to reproduce it: 1. Have Users belongsToMany Roles - both having Trash behavior 2. Set the setCascadeCallbacks on that relation to true (it's false by default) 3. The in-between...

If you have `cascadeCallbacks` enabled. The `'purge'=>true` only works if the related (hasMany) elements are not trashed. Steps to reproduce: 1. Have 2 tables, both with Trash. 2. First table...

Use Entity::patch method (if exists) in TrashBehavior::trash and TrashBehavior::restoreTrash

debug: Since 5.2.0: Passing an array as the first argument to `Cake\ORM\Entity::set()` is deprecated. Use `Cake\ORM\Entity::patch()` instead. /var/www/halalcard/vendor/muffin/trash/src/Model/Behavior/TrashBehavior.php, line: 290