mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-07 11:39:30 +00:00
Fixed deprecations
This commit is contained in:
parent
a9d0caad5f
commit
63a33d1057
4 changed files with 37 additions and 35 deletions
|
|
@ -81,7 +81,7 @@ abstract class AbstractCompany extends AbstractPartsContainingDBElement
|
|||
/**
|
||||
* @var string The website of the company
|
||||
*/
|
||||
#[Assert\Url]
|
||||
#[Assert\Url(requireTld: false)]
|
||||
#[Groups(['full', 'company:read', 'company:write', 'import', 'extended'])]
|
||||
#[ORM\Column(type: Types::STRING)]
|
||||
#[Assert\Length(max: 255)]
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ trait ManufacturerTrait
|
|||
/**
|
||||
* @var string The url to the part on the manufacturer's homepage
|
||||
*/
|
||||
#[Assert\Url]
|
||||
#[Assert\Url(requireTld: false)]
|
||||
#[Groups(['full', 'import', 'part:read', 'part:write'])]
|
||||
#[ORM\Column(type: Types::TEXT)]
|
||||
protected string $manufacturer_product_url = '';
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ class Orderdetail extends AbstractDBElement implements TimeStampableInterface, N
|
|||
/**
|
||||
* @var string The URL to the product on the supplier's website
|
||||
*/
|
||||
#[Assert\Url]
|
||||
#[Assert\Url(requireTld: false)]
|
||||
#[Groups(['full', 'import', 'orderdetail:read', 'orderdetail:write'])]
|
||||
#[ORM\Column(type: Types::TEXT)]
|
||||
protected string $supplier_product_url = '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue