hesabixCore/src/Entity/Business.php
2023-01-26 11:13:53 -05:00

37 lines
656 B
PHP

<?php
namespace App\Entity;
use App\Repository\BusinessRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: BusinessRepository::class)]
class Business
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'businesses')]
#[ORM\JoinColumn(nullable: false)]
private ?User $owner = null;
public function getId(): ?int
{
return $this->id;
}
public function getOwner(): ?User
{
return $this->owner;
}
public function setOwner(?User $owner): self
{
$this->owner = $owner;
return $this;
}
}