Skip to content

Add strict option for delete()

Choose a tag to compare

@dereuromark dereuromark released this 12 Feb 16:37
· 462 commits to master since this release

delete() can now be called with 'strict' option to throw an exception instead of returning false.
This can help to catch silent non-deletes where you would otherwise manually wrap it with exception handling everywhere.
E.g. in a CLI script:

$this->TableName->delete($entityName, ['strict' => true]);