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