Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-3064

Parse Error which is pointing to the method getSingleResult();

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
    • Environment:
      # DoctrineModule for Zend Framework 2

      Description

      syntax error, unexpected ''sidebar_bann' (T_ENCAPSED_AND_WHITESPACE), expecting ']'

      TracedError reported from New Relic
      Application: ENV2
      Timestamp: 02/26/14 10:49:15
      Exception Class: E_PARSE
      Error Action: /index.php
      Uri: /blog
      Error message
      E_PARSE: syntax error, unexpected ''sidebar_bann' (T_ENCAPSED_AND_WHITESPACE), expecting ']'

        Activity

        Hide
        Haneefa added a comment - - edited

        Please help me to find out the cause of this issue.
        Thanks!

        Show
        Haneefa added a comment - - edited Please help me to find out the cause of this issue. Thanks!
        Hide
        Marco Pivetta added a comment -

        Could you provide the DQL?

        Show
        Marco Pivetta added a comment - Could you provide the DQL?
        Hide
        Haneefa added a comment -

        I don't have the DQL as this error was logged by newrelic, see the zend stack trace here
        …dor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Hydrator/
        HydratorFactory.php (144)
        …dor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Hydrator/
        in Doctrine\ODM\MongoDB\Hydrator\HydratorFactory::getHydratorFor called at /vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php
        HydratorFactory.php (404)
        /vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/
        UnitOfWork.php (2518)
        /vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/
        Cursor.php (118)
        in Doctrine\ODM\MongoDB\Cursor::current called at ?
        …alled at /vendor/doctrine/mongodb/lib/Doctrine/MongoDB/
        Cursor.php (371)
        …alled at /vendor/doctrine/mongodb/lib/Doctrine/MongoDB/
        Cursor.php (419)
        …alled at /vendor/doctrine/mongodb/lib/Doctrine/MongoDB/
        Cursor.php (372)
        …alled at /vendor/doctrine/mongodb/lib/Doctrine/MongoDB/
        Cursor.php (384)
        … at /vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Query/
        Query.php (277)

        Show
        Haneefa added a comment - I don't have the DQL as this error was logged by newrelic, see the zend stack trace here …dor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Hydrator/ HydratorFactory.php (144) …dor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Hydrator/ in Doctrine\ODM\MongoDB\Hydrator\HydratorFactory::getHydratorFor called at /vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php HydratorFactory.php (404) /vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/ UnitOfWork.php (2518) /vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/ Cursor.php (118) in Doctrine\ODM\MongoDB\Cursor::current called at ? …alled at /vendor/doctrine/mongodb/lib/Doctrine/MongoDB/ Cursor.php (371) …alled at /vendor/doctrine/mongodb/lib/Doctrine/MongoDB/ Cursor.php (419) …alled at /vendor/doctrine/mongodb/lib/Doctrine/MongoDB/ Cursor.php (372) …alled at /vendor/doctrine/mongodb/lib/Doctrine/MongoDB/ Cursor.php (384) … at /vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Query/ Query.php (277)
        Hide
        Marco Pivetta added a comment -

        Not an ORM issue

        Show
        Marco Pivetta added a comment - Not an ORM issue
        Hide
        Haneefa added a comment -

        Can you just light me on this issue? what would I need to do? It is happening when I add a domain name(xxx.extample.com) in where condition. It would be great if you can help me.

        Show
        Haneefa added a comment - Can you just light me on this issue? what would I need to do? It is happening when I add a domain name(xxx.extample.com) in where condition. It would be great if you can help me.
        Hide
        Marco Pivetta added a comment -

        Haneefa this is an issue tracker, not a support forum. You report issues here once you verified that it is actually a bug, a mistake on our side or something that has to be added or cleaned up in future versions of the software.

        Your issue is a problem with MongoDB ODM (not with the ORM), and you should ask on either the mailing list (once you have more detail) or stackoverflow, or IRC (irc.freenode.net#doctrine).

        Show
        Marco Pivetta added a comment - Haneefa this is an issue tracker, not a support forum. You report issues here once you verified that it is actually a bug, a mistake on our side or something that has to be added or cleaned up in future versions of the software. Your issue is a problem with MongoDB ODM (not with the ORM), and you should ask on either the mailing list (once you have more detail) or stackoverflow, or IRC (irc.freenode.net#doctrine).
        Hide
        Haneefa added a comment -

        Thank you so much!

        Show
        Haneefa added a comment - Thank you so much!

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Haneefa
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: