FileWithoutPath.php 754 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Uploadable\Fixture\Entity;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. /**
  7. * @ORM\Entity
  8. * @Gedmo\Uploadable
  9. */
  10. class FileWithoutPath
  11. {
  12. /**
  13. * @ORM\Column(name="id", type="integer")
  14. * @ORM\Id
  15. * @ORM\GeneratedValue(strategy="IDENTITY")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\Column(name="path", type="string", nullable=true)
  20. * @Gedmo\UploadableFilePath
  21. */
  22. private $filePath;
  23. public function getId()
  24. {
  25. return $this->id;
  26. }
  27. public function setFilePath($filePath)
  28. {
  29. $this->filePath = $filePath;
  30. }
  31. public function getFilePath()
  32. {
  33. return $this->filePath;
  34. }
  35. }