Allow to create new parts.

This commit is contained in:
Jan Böhmer 2019-08-19 23:41:58 +02:00
parent 813e7dc85b
commit 76abef57be
3 changed files with 23 additions and 8 deletions

View file

@ -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