Dont order collections by attachment_type or supplier as this causes an exception on table views.

This commit is contained in:
Jan Böhmer 2020-04-01 17:00:50 +02:00
parent 63ca177699
commit a4ee46fed4
13 changed files with 13 additions and 14 deletions

View file

@ -84,7 +84,7 @@ class Footprint extends AbstractPartsContainingDBElement
/**
* @var Collection<int, FootprintAttachment>
* @ORM\OneToMany(targetEntity="App\Entity\Attachments\FootprintAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true)
* @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"})
* @ORM\OrderBy({"name" = "ASC"})
* @Assert\Valid()
*/
protected $attachments;
@ -98,7 +98,7 @@ class Footprint extends AbstractPartsContainingDBElement
/** @var Collection<int, FootprintParameter>
* @ORM\OneToMany(targetEntity="App\Entity\Parameters\FootprintParameter", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true)
* @ORM\OrderBy({"group" = "ASC" ,"name" = "ASC"})@ORM\OrderBy({"group" = "ASC" ,"name" = "ASC"})
* @ORM\OrderBy({"group" = "ASC" ,"name" = "ASC"})
* @Assert\Valid()
*/
protected $parameters;