Order attachments and part lots by a reasonable parameter.

This commit is contained in:
Jan Böhmer 2020-04-01 15:37:06 +02:00
parent f0a3e9b5af
commit a4802e290f
14 changed files with 15 additions and 0 deletions

View file

@ -44,6 +44,7 @@ namespace App\Entity\Parts\PartTraits;
use App\Entity\PriceInformations\Orderdetail;
use App\Security\Annotations\ColumnSecurity;
use Doctrine\ORM\Mapping as ORM;
use function count;
use Doctrine\Common\Collections\Collection;
@ -57,6 +58,7 @@ trait OrderTrait
* @ORM\OneToMany(targetEntity="App\Entity\PriceInformations\Orderdetail", mappedBy="part", cascade={"persist", "remove"}, orphanRemoval=true)
* @Assert\Valid()
* @ColumnSecurity(prefix="orderdetails", type="collection")
* @ORM\OrderBy({"supplier" = "ASC", "supplierpartnr" = "ASC"})
*/
protected $orderdetails;