mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 19:28:51 +02:00
Allow to create new parts.
This commit is contained in:
parent
813e7dc85b
commit
76abef57be
3 changed files with 23 additions and 8 deletions
|
@ -53,8 +53,10 @@ declare(strict_types=1);
|
|||
namespace App\Entity\Attachments;
|
||||
|
||||
use App\Entity\Base\NamedDBElement;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Doctrine\ORM\PersistentCollection;
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
|
@ -74,6 +76,11 @@ abstract class AttachmentContainingDBElement extends NamedDBElement
|
|||
//TODO
|
||||
protected $attachmentTypes;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->attachments = new ArrayCollection();
|
||||
}
|
||||
|
||||
/********************************************************************************
|
||||
*
|
||||
* Getters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue