true])] private array $relatedGenericDocIdentifiers, #[ORM\ManyToOne(targetEntity: EntityWorkflow::class, inversedBy: 'attachments')] #[ORM\JoinColumn(nullable: false, name: 'entityworkflow_id')] private EntityWorkflow $entityWorkflow, /** * Stored object related to the generic doc. * * This is a story to keep track more easily to stored object */ #[ORM\ManyToOne(targetEntity: StoredObject::class)] #[ORM\JoinColumn(nullable: false, name: 'storedobject_id')] private StoredObject $proxyStoredObject, ) { $this->entityWorkflow->addAttachment($this); } public function getId(): ?int { return $this->id; } public function getEntityWorkflow(): EntityWorkflow { return $this->entityWorkflow; } public function getRelatedGenericDocIdentifiers(): array { return $this->relatedGenericDocIdentifiers; } public function getRelatedGenericDocKey(): string { return $this->relatedGenericDocKey; } public function getProxyStoredObject(): StoredObject { return $this->proxyStoredObject; } }