public function getDefaultFactory() { return Orders::getInstance(); }
protected function getFactory() { return Orders::getInstance(); }
protected function archiveOrder($id) { $order = Orders::getInstance()->findEntity($id); $order->setStatus(Order::STATUS_CLOSED); $order->store(); }