Cache the tree nodes list generated for StructuralEntityType.

This commit is contained in:
Jan Böhmer 2019-08-20 12:34:43 +02:00
parent 76abef57be
commit f75f17c92b
6 changed files with 153 additions and 7 deletions

View file

@ -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