<?php
namespace App\Entity;
use App\Validator\Address as ValidAddress;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*
* @ValidAddress(groups="profile")
*/
class ShippingAddress extends Address
{
/**
* @ORM\ManyToOne(targetEntity="ProUser", inversedBy="shippingAddresses", cascade={"persist"})
*/
private $user;
public function getUser()
{
return $this->user;
}
public function setUser($user)
{
$this->user = $user;
return $this;
}
}