Allow to set basic data via import

This commit is contained in:
Jan Böhmer 2023-03-12 20:01:29 +01:00
parent 7a9b7c87a4
commit 85ae862381
5 changed files with 12 additions and 12 deletions

View file

@ -35,14 +35,14 @@ trait AdvancedPropertyTrait
/**
* @var bool Determines if this part entry needs review (for example, because it is work in progress)
* @ORM\Column(type="boolean")
* @Groups({"extended", "full"})
* @Groups({"extended", "full", "import"})
*/
protected bool $needs_review = false;
/**
* @var string a comma separated list of tags, associated with the part
* @ORM\Column(type="text")
* @Groups({"extended", "full"})
* @Groups({"extended", "full", "import"})
*/
protected string $tags = '';
@ -50,7 +50,7 @@ trait AdvancedPropertyTrait
* @var float|null how much a single part unit weighs in grams
* @ORM\Column(type="float", nullable=true)
* @Assert\PositiveOrZero()
* @Groups({"extended", "full"})
* @Groups({"extended", "full", "import"})
*/
protected ?float $mass = null;
@ -58,7 +58,7 @@ trait AdvancedPropertyTrait
* @var string The internal part number of the part
* @ORM\Column(type="string", length=100, nullable=true, unique=true)
* @Assert\Length(max="100")
* @Groups({"extended", "full"})
* @Groups({"extended", "full", "ipn"})
*/
protected ?string $ipn = null;