mini\Database\Model::delete() Method

public

Signature

public function delete(): int

Returns

int

Documentation

Delete entity with authorization

Two layers:

  1. can() — action authorization (provideCanDelete)
  2. deletable() — row-level write scoping (entity must be reachable)

Source

src/Database/Model.php:390-403