From c6d9727966eaf5d18520de4f8dd7be145f627430 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 20 Oct 2021 14:33:55 +0200 Subject: [PATCH] remove useless field --- src/Entity/StlMesh.php | 17 ----------------- src/Form/StlMeshType.php | 13 ------------- 2 files changed, 30 deletions(-) diff --git a/src/Entity/StlMesh.php b/src/Entity/StlMesh.php index 83a10d4..ee6e2ce 100644 --- a/src/Entity/StlMesh.php +++ b/src/Entity/StlMesh.php @@ -33,11 +33,6 @@ class StlMesh implements EntityInterface */ private $description; - /** - * @ORM\Column(type="string", length=255, nullable=true) - */ - private $file; - /** * @ORM\Column(type="array", nullable=true) */ @@ -89,18 +84,6 @@ class StlMesh implements EntityInterface return $this; } - public function getFile(): ?string - { - return $this->file; - } - - public function setFile(?string $file): self - { - $this->file = $file; - - return $this; - } - public function getPreview(): ?string { return $this->preview; diff --git a/src/Form/StlMeshType.php b/src/Form/StlMeshType.php index ad72fd8..629373c 100644 --- a/src/Form/StlMeshType.php +++ b/src/Form/StlMeshType.php @@ -45,19 +45,6 @@ class StlMeshType extends AbstractType ] ); - $builder->add( - 'file', - FilePickerType::class, - [ - 'label' => 'Fichier STL', - 'required' => false, - 'attr' => [ - ], - 'constraints' => [ - ], - ] - ); - $builder->add( 'files', MurphCollectionType::class,