Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,15 @@ Associations are correctly handled by SoftDelete plugin.

1. Soft deletion will be cascaded to related models as usual. If related models also use SoftDelete Trait, they will be soft deleted.
2. Soft deletes records will be excluded from counter caches.

### set `dependent => false`
```php
$this->belongsToMany('Companies', [
'foreignKey' => 'users_id',
'targetForeignKey' => 'companies_id',
'joinTable' => 'users_companies',
'className' => 'Companies',
'dependent' => false,
]);

```