Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Severino committed Aug 5, 2024
1 parent e8adff0 commit c7eff8f
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 168 deletions.
5 changes: 5 additions & 0 deletions app/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ public static function getFromPath($path, $delimiter = "\\\\"): ?int {
return null;
}
}

public function findChildren(){
$children = Entity::where('root_entity_id', $this->id)->get();
return $children;
}

public static function create($fields, $entityTypeId, $user, $rootEntityId = null) {
$isChild = isset($rootEntityId);
Expand Down
Loading

0 comments on commit c7eff8f

Please sign in to comment.