mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 21:44:28 +02:00
Added UserSelectType and allow to set owner of a storage location
This commit is contained in:
parent
f101e1b184
commit
5f5541ca12
8 changed files with 142 additions and 36 deletions
|
@ -46,7 +46,7 @@ class NodesListBuilder
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets a flattened hierachical tree. Useful for generating option lists.
|
||||
* Gets a flattened hierarchical tree. Useful for generating option lists.
|
||||
* In difference to the Repository Function, the results here are cached.
|
||||
*
|
||||
* @param string $class_name the class name of the entity you want to retrieve
|
||||
|
@ -66,6 +66,7 @@ class NodesListBuilder
|
|||
$item->tag(['groups', 'tree_list', $this->keyGenerator->generateKey(), $secure_class_name]);
|
||||
/** @var StructuralDBElementRepository $repo */
|
||||
$repo = $this->em->getRepository($class_name);
|
||||
|
||||
return $repo->toNodesList($parent);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue