<?php
namespace App\Entity\User;
use App\Repository\User\ProfileRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table('profile')]
#[ORM\Entity(repositoryClass: ProfileRepository::class)]
class Profile
{
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private $id;
#[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id')]
#[ORM\ManyToOne(targetEntity: User::class)]
private User $user;
#[ORM\Column(name: 'param_key', type: 'string', length: 255)]
private string $paramKey;
#[ORM\Column(name: 'param_value', type: 'text')]
private string $paramValue;
public function getId(): ?int
{
return $this->id;
}
/**
* @return $this
*/
public function setParamKey(string $paramKey): self
{
$this->paramKey = $paramKey;
return $this;
}
public function getParamKey(): string
{
return $this->paramKey;
}
/**
* @return $this
*/
public function setParamValue(string $paramValue): self
{
$this->paramValue = $paramValue;
return $this;
}
public function getParamValue(): string
{
return $this->paramValue;
}
/**
* @return $this
*/
public function setUser(User $user): self
{
$this->user = $user;
return $this;
}
public function getUser(): User
{
return $this->user;
}
}