Update PROJECT.md

This commit is contained in:
Dennis Eichhorn 2022-01-19 12:54:46 +01:00 committed by GitHub
parent b4d94e7c70
commit e99a8ba86b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -680,6 +680,25 @@ where ...
)
```
Php sample usage:
```php
$where = PermissionAbstractMapper::helper()
->group($groups)
->account($account)
->unit([null, 2])
->app([null, 1])
->...
->permission(Permission::READ & Permission::WRITE)
$obj = ThisMapper::get()
->with('hasMany')
->where('id', $request->getData('id', 'int') ?? 0)
->where('', $where)
->limit(1)
->execute();
```
#### Option 2
1. Check if general permission exists -> just do query