src/Entity/User/Profile.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\User;
  3. use App\Repository\User\ProfileRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Table('profile')]
  6. #[ORM\Entity(repositoryClass: ProfileRepository::class)]
  7. class Profile
  8. {
  9. #[ORM\Column(name: 'id', type: 'integer')]
  10. #[ORM\Id]
  11. #[ORM\GeneratedValue(strategy: 'AUTO')]
  12. private $id;
  13. #[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id')]
  14. #[ORM\ManyToOne(targetEntity: User::class)]
  15. private User $user;
  16. #[ORM\Column(name: 'param_key', type: 'string', length: 255)]
  17. private string $paramKey;
  18. #[ORM\Column(name: 'param_value', type: 'text')]
  19. private string $paramValue;
  20. public function getId(): ?int
  21. {
  22. return $this->id;
  23. }
  24. /**
  25. * @return $this
  26. */
  27. public function setParamKey(string $paramKey): self
  28. {
  29. $this->paramKey = $paramKey;
  30. return $this;
  31. }
  32. public function getParamKey(): string
  33. {
  34. return $this->paramKey;
  35. }
  36. /**
  37. * @return $this
  38. */
  39. public function setParamValue(string $paramValue): self
  40. {
  41. $this->paramValue = $paramValue;
  42. return $this;
  43. }
  44. public function getParamValue(): string
  45. {
  46. return $this->paramValue;
  47. }
  48. /**
  49. * @return $this
  50. */
  51. public function setUser(User $user): self
  52. {
  53. $this->user = $user;
  54. return $this;
  55. }
  56. public function getUser(): User
  57. {
  58. return $this->user;
  59. }
  60. }