|
|
|
@ -2,6 +2,9 @@
|
|
|
|
|
|
|
|
|
|
namespace App\Component\Customer\Domain;
|
|
|
|
|
|
|
|
|
|
use App\Component\File\Domain\File;
|
|
|
|
|
use Doctrine\Common\Collections\Collection;
|
|
|
|
|
|
|
|
|
|
#[ORM\Entity, ORM\Table(name:"customers")]
|
|
|
|
|
class Customer
|
|
|
|
|
{
|
|
|
|
@ -42,6 +45,9 @@ class Customer
|
|
|
|
|
#[ORM\Column(type:Types::String, length:100)]
|
|
|
|
|
private string $city;
|
|
|
|
|
|
|
|
|
|
#[ORM\OneToMany(mappedBy:"customer", targetEntity: File::class)]
|
|
|
|
|
private Collection $files;
|
|
|
|
|
|
|
|
|
|
#[ORM\Column]
|
|
|
|
|
public \DateTime $created;
|
|
|
|
|
|
|
|
|
|