Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | protected function performAction(User $user, Organization $organization, int $sortOrder = null): bool |
||
26 | { |
||
27 | $query = Organization::find(); |
||
28 | $query->setCachedResult([$organization]); |
||
29 | |||
30 | /** @var OrganizationsAssociatedToUserBehavior $user */ |
||
31 | return $user->getOrganizations()->remove($query)->save(); |
||
32 | } |
||
33 | } |
||
34 |