Erreur: la Doctrine\ORM\Query\Lexer::T_WITH, a "SUR"

J'ai écriture de code suivant pour récupérer des données à partir de la base de données

 function getnotificationAction() {
    $session = $this->getRequest()->getSession();
    $userId = $session->get('userid');

    $entitymanager = $this->getDoctrine()->getEntityManager();
    $notification = $entitymanager->getRepository('IGCNotificationBundle:Notifications');
    $userNotification = $entitymanager->getRepository('IGCNotificationBundle:Usernotifications');
    $query = $entitymanager->createQuery("SELECT n.notificationid, n.title,n.notificationmessage, u.creationdate, u.notificationid, u.messagestatus From IGCNotificationBundle:Notifications AS n JOIN IGCNotificationBundle:Usernotifications AS u ON u.notificationid = n.notificationid WHERE u.userId = :userId ORDER BY n.creationdate DESC")->setParameter('userId', userId);

    $notifications = $query->getResult();

    return $this->render('IGCNotificationBundle:Default:notification.html.twig', array('notifications' => $notifications));
} }

Mais il est givin

[Syntax Error] line 0, col 203: Error: Expected Doctrine\ORM\Query\Lexer::T_WITH, got 'ON' 500 Internal Server Error - QueryException 1 linked Exception: QueryException »

Besoin de votre aide
Merci d'avance

peut-être supprimer AS IGCNotificationBundle:Notifications n JOIN IGCNotificationBundle:Usernotifications u
Salut merci pour la réponse j'ai essayé ceci mais, face à la même erreur
Pour autant que je vois que vous essayez d'exécuter SQL... vous avez besoin de le réécrire DQL (Docrine Query Language). Veuillez mettre à jour votre question avec des entités de la structure...
salut @jperovic je ne sais pas comment faire pour convertir ce en DQL
peut-on convertir cette requête sql dans une requête dql

OriginalL'auteur Vishal Mokal | 2013-12-09