Exemplo n.º 1
0
 /**
  * Remove entity
  *
  * @param \XLite\Model\AEntity $entity Entity
  *
  * @return boolean
  */
 protected function removeEntity(\XLite\Model\AEntity $entity)
 {
     /** @var \XLite\Model\Shipping\Method $entity */
     if ('offline' !== $entity->getProcessor() && '' === $entity->getCarrier()) {
         $entity->setAdded(false);
         $result = true;
     } else {
         $result = parent::removeEntity($entity);
     }
     return $result;
 }