/** * Remove temporary order * * @param \XLite\Model\Order $order Order * * @return void */ protected function removeTemporaryOrder(\XLite\Model\Order $order) { foreach ($order->getItems() as $item) { foreach ($item->getPinCodes() as $pin) { \XLite\Core\Database::getEM()->remove($pin); } } parent::removeTemporaryOrder($order); }