diff --git a/modules/opencase_cases/src/Entity/OCCase.php b/modules/opencase_cases/src/Entity/OCCase.php index 63bc590..31cd16a 100644 --- a/modules/opencase_cases/src/Entity/OCCase.php +++ b/modules/opencase_cases/src/Entity/OCCase.php @@ -92,6 +92,10 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface ]; } + public function getCaseProvisions() { + + } + public function deleteCaseProvisions(): void { $this->deleteChildren('oc_case_provision'); } @@ -99,8 +103,7 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface $this->deleteChildren('oc_activity'); } - - public function deleteChildren($child_entity_type):void { + private function deleteChildren($child_entity_type):void { $query = \Drupal::entityQuery($child_entity_type) ->condition('oc_case.target_id', $this->id()); $ids = $query->execute();