Sylius / ShopApiPlugin

Shop API for Sylius.
https://sylius.com
129 stars 89 forks source link

Invalid address exists validation in case when address do not belongs to any customer #705

Open hurricane-voronin opened 3 years ago

hurricane-voronin commented 3 years ago

Hi there, I've got an error during validation of address existence in case when it does not belong to any customer: see AddressExistsValidator

if ($address->getCustomer()->getEmail() !== $user->getEmail()) {
    return $this->context->addViolation($constraint->message);
}
mamazu commented 2 years ago

Shouldn't this be fixed by your merge request? If not could you elaborate on what is still not working?