src/Core/Entity/Bloqueos.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Core\Entity;
  3. use App\Core\Entity\User;
  4. use App\Core\Repository\BloqueosRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity(repositoryClass=BloqueosRepository::class)
  8. */
  9. class Bloqueos
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\ManyToOne(targetEntity=User::class, inversedBy="bloqueados")
  19. * @ORM\JoinColumn(nullable=false)
  20. */
  21. private $bloqueador;
  22. /**
  23. * @ORM\ManyToOne(targetEntity=User::class, inversedBy="bloqueadores")
  24. * @ORM\JoinColumn(nullable=false)
  25. */
  26. private $bloqueado;
  27. public function getId(): ?int
  28. {
  29. return $this->id;
  30. }
  31. public function getBloqueador(): ?User
  32. {
  33. return $this->bloqueador;
  34. }
  35. public function setBloqueador(?User $bloqueador): self
  36. {
  37. $this->bloqueador = $bloqueador;
  38. return $this;
  39. }
  40. public function getBloqueado(): ?User
  41. {
  42. return $this->bloqueado;
  43. }
  44. public function setBloqueado(?User $bloqueado): self
  45. {
  46. $this->bloqueado = $bloqueado;
  47. return $this;
  48. }
  49. }