mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 18:04:33 +02:00
Fixed some exceptions introduced earlier.
This commit is contained in:
parent
58ada496e4
commit
c2c768b151
5 changed files with 6 additions and 10 deletions
|
@ -66,7 +66,7 @@ class MeasurementUnit extends AbstractPartsContainingDBElement
|
|||
* @ORM\Column(type="string", name="unit", nullable=true)
|
||||
* @Assert\Length(max=10)
|
||||
*/
|
||||
protected string $unit;
|
||||
protected ?string $unit = null;
|
||||
|
||||
/**
|
||||
* @var bool Determines if the amount value associated with this unit should be treated as integer.
|
||||
|
|
|
@ -85,7 +85,7 @@ trait OrderTrait
|
|||
*
|
||||
* @ColumnSecurity(prefix="order", type="object")
|
||||
*/
|
||||
protected Orderdetail $order_orderdetail;
|
||||
protected ?Orderdetail $order_orderdetail = null;
|
||||
|
||||
/**
|
||||
* Get the selected order orderdetails of this part.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue