小编Vis*_*kal的帖子

错误:预期的Doctrine\ORM\Query\Lexer :: T_WITH,"开启"

我编写了以下代码来从数据库中获取数据

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));
} }
Run Code Online (Sandbox Code Playgroud)

但它是givin

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 = …
Run Code Online (Sandbox Code Playgroud)

php symfony doctrine-orm

19
推荐指数
1
解决办法
3万
查看次数

将android软键盘中的首字母大写为edittext

我有编辑接受字符串的文本.我希望字符串的第一个字母是大写的,因为我想要显示大写字母的键盘,这是android的默认行为.

android

5
推荐指数
1
解决办法
6026
查看次数

卸载android应用程序时如何删除应用程序目录

我正在创建一个应用程序,其目录是在sdcard上创建的 ("/mnt/sdcard/testzapp")

我想在用户时uninstall application也删除该目录.
我怎样才能做到这一点?

android

0
推荐指数
1
解决办法
1558
查看次数

标签 统计

android ×2

doctrine-orm ×1

php ×1

symfony ×1