Sylius / ShopApiPlugin

Shop API for Sylius.

Home Page:https://sylius.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

hurricane-voronin opened this issue · comments

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);
}

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