src/Entity/ClaseArchivo.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Asistencia\Entity\Clase;
  4. use App\Repository\ClaseArchivoRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity(repositoryClass=ClaseArchivoRepository::class)
  8. */
  9. class ClaseArchivo
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\ManyToOne(targetEntity=Clase::class, inversedBy="claseArchivos", cascade={"persist"})
  19. */
  20. private $clase;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=Archivo::class)
  23. */
  24. private $archivo;
  25. public function getId(): ?int
  26. {
  27. return $this->id;
  28. }
  29. public function getClase(): ?Clase
  30. {
  31. return $this->clase;
  32. }
  33. public function setClase(?Clase $clase): self
  34. {
  35. $this->clase = $clase;
  36. return $this;
  37. }
  38. public function getArchivos(): ?Archivo
  39. {
  40. return $this->archivo;
  41. }
  42. public function setArchivos(?Archivo $archivo): self
  43. {
  44. $this->archivo = $archivo;
  45. return $this;
  46. }
  47. }