Show parts count on AdminPages of PartsContainingDBElements

This commit is contained in:
Jan Böhmer 2019-09-04 19:37:35 +02:00
parent 082608dbd9
commit e19cd67b88
10 changed files with 97 additions and 38 deletions

View file

@ -75,7 +75,7 @@ class Category extends PartsContainingDBElement
protected $parent;
/**
* @ORM\OneToMany(targetEntity="Part", mappedBy="category")
* @ORM\OneToMany(targetEntity="Part", mappedBy="category", fetch="EXTRA_LAZY")
*/
protected $parts;