Executes a DELETE statement on the specified table.
public delete ( string $table, array $conditions = [], array $types = [] ) : Cake\Database\StatementInterface | ||
$table | string | the table to delete rows from |
$conditions | array | conditions to be set for delete statement |
$types | array | list of associative array containing the types to be used for casting |
Результат | Cake\Database\StatementInterface |
/** * {@inheritdoc} */ public function deletePermission(PermissionInterface $permission) { $this->connection->delete($this->getAclSchema()->getPermissionsTableName(), ['requester' => $permission->getRequester()->getAclRequesterIdentifier(), 'resource' => $permission->getResource()->getAclResourceIdentifier()], ['requester' => 'string', 'resource' => 'string']); }