DocGeneratorTemplate use StoredObject for storign the template

This commit is contained in:
Marc Ducobu 2021-11-05 14:53:51 +01:00 committed by marcu
parent 847e610362
commit 2b01179967
2 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,11 @@ class DocGeneratorTemplate
*/
private array $name = [];
/**
* @ORM\ManyToOne(targetEntity=StoredObject::class, cascade={"persist"}).)
*/
private ?StoredObject $file = null;
public function getContext(): ?string
{
return $this->context;

View File

@ -19,6 +19,7 @@ use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Chill\DocStoreBundle\Form\StoredObjectType;
use Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWorkEvaluation;
use Chill\MainBundle\Form\Type\TranslatableStringFormType;
class DocGeneratorTemplateType extends AbstractType
{