mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 19:28:51 +02:00
Fixed exception on login.
This commit is contained in:
parent
4047125c6e
commit
9d73cc0869
2 changed files with 9 additions and 1 deletions
|
@ -48,7 +48,6 @@ trait MasterAttachmentTrait
|
||||||
* @ORM\ManyToOne(targetEntity="App\Entity\Attachments\Attachment")
|
* @ORM\ManyToOne(targetEntity="App\Entity\Attachments\Attachment")
|
||||||
* @ORM\JoinColumn(name="id_preview_attachement", referencedColumnName="id")
|
* @ORM\JoinColumn(name="id_preview_attachement", referencedColumnName="id")
|
||||||
* @Assert\Expression("value == null or value.isPicture()", message="part.master_attachment.must_be_picture")
|
* @Assert\Expression("value == null or value.isPicture()", message="part.master_attachment.must_be_picture")
|
||||||
* @ColumnSecurity(prefix="attachments", type="object")
|
|
||||||
*/
|
*/
|
||||||
protected $master_picture_attachment;
|
protected $master_picture_attachment;
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity\Parts;
|
namespace App\Entity\Parts;
|
||||||
|
|
||||||
|
use App\Entity\Attachments\Attachment;
|
||||||
use App\Entity\Attachments\AttachmentContainingDBElement;
|
use App\Entity\Attachments\AttachmentContainingDBElement;
|
||||||
use App\Entity\Devices\Device;
|
use App\Entity\Devices\Device;
|
||||||
use App\Entity\Parts\PartTraits\AdvancedPropertyTrait;
|
use App\Entity\Parts\PartTraits\AdvancedPropertyTrait;
|
||||||
|
@ -128,6 +129,14 @@ class Part extends AttachmentContainingDBElement
|
||||||
*/
|
*/
|
||||||
protected $attachments;
|
protected $attachments;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Attachment
|
||||||
|
* @ORM\ManyToOne(targetEntity="App\Entity\Attachments\Attachment")
|
||||||
|
* @ORM\JoinColumn(name="id_preview_attachement", referencedColumnName="id")
|
||||||
|
* @Assert\Expression("value == null or value.isPicture()", message="part.master_attachment.must_be_picture")
|
||||||
|
*/
|
||||||
|
protected $master_picture_attachment;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue