Doctrine2 in ZF2 - DQL gives different result than findOneBy method

后端 未结 1 1665
心在旅途
心在旅途 2021-01-23 03:35

I have this entity:

/**
 * User state.
 *
 * @ORM\\Entity(repositoryClass=\"User\\Repository\\StateRepository\")
 * @ORM\\Table(name=\"user_state\")
 */
class St         


        
1条回答
  •  温柔的废话
    2021-01-23 04:24

    I just updated my Doctrine2 ORM to version 2.5 and now it is working :)

    The Doctrine elements inside my current composer.json file look like this:

    "doctrine/doctrine-module":"dev-master",
    "doctrine/doctrine-orm-module": "dev-master",
    "doctrine/dbal": "2.5.*@dev",
    "doctrine/orm": "2.5.*@dev",
    

    0 讨论(0)
提交回复
热议问题