mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Cache the tree nodes list generated for StructuralEntityType.
This commit is contained in:
parent
76abef57be
commit
f75f17c92b
6 changed files with 153 additions and 7 deletions
|
@ -72,6 +72,8 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
|||
*
|
||||
* @ORM\MappedSuperclass(repositoryClass="App\Repository\StructuralDBElementRepository")
|
||||
*
|
||||
* @ORM\EntityListeners({"App\Security\EntityListeners\ElementPermissionListener", "App\EntityListeners\TreeCacheInvalidationListener"})
|
||||
*
|
||||
* @UniqueEntity(fields={"name", "parent"}, ignoreNull=false, message="structural.entity.unique_name")
|
||||
*/
|
||||
abstract class StructuralDBElement extends AttachmentContainingDBElement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue