public static function checkMergOrder() { $doctrine = self::$servicelocator->get('doctrine'); $orderModel = new orderModel($doctrine); $Auth_service = new AuthenticationService(); $auth = $Auth_service->getIdentity(); $orderModel->findBy(array('status' => 'pending', 'user_id' => $auth->userId)); }