style forms, and associate products with user

This commit is contained in:
Tykayn 2025-02-14 18:17:31 +01:00 committed by tykayn
parent e5708e9e5f
commit e7d6b66f70
11 changed files with 90 additions and 21 deletions

View file

@ -28,10 +28,10 @@ class GroupOfProducts
private Collection $products;
/**
* @var Collection<int, Selling>
* @var Collection<int, Selling>|null
*/
#[ORM\ManyToMany(targetEntity: Selling::class, inversedBy: 'groupOfProducts')]
private Collection $sellings;
private ?Collection $sellings = null;
#[ORM\ManyToOne(inversedBy: 'groupOfProducts')]
private ?User $user = null;