Ejemplo n.º 1
0
 /**
  * @param \Orm\Zed\Customer\Persistence\SpyCustomer $customerEntity
  *
  * @return bool
  */
 protected function isEmailAvailableForCustomer(SpyCustomer $customerEntity)
 {
     $count = $this->queryContainer->queryCustomerByEmailApartFromIdCustomer($customerEntity->getEmail(), $customerEntity->getIdCustomer())->count();
     return $count === 0;
 }