for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Entity;
use App\Entity\Traits\EntityIdTrait;
use App\Repository\ProfileRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProfileRepository::class)
*/
class Profile
{
use EntityIdTrait;
* @ORM\Column(type="string", length=255, nullable=true)
private $full_name;
private $phone;
* @ORM\OneToOne(targetEntity=User::class, inversedBy="profile", cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=false)
private $user;
public function getFullName(): ?string
return $this->full_name;
}
public function setFullName(?string $full_name): self
$this->full_name = $full_name;
return $this;
public function getPhone(): ?string
return $this->phone;
public function setPhone(?string $phone): self
$this->phone = $phone;
public function getUser(): ?User
return $this->user;
public function setUser(User $user): self
$this->user = $user;