Details
Description
Currently, it is impossible to provide an argument that is a collection of Entities. Example:
$userA = new CmsUser; $userA->name = 'Benjamin'; $userA->username = 'beberlei'; $userA->status = 'developer'; $this->_em->persist($userA); $userB = new CmsUser; $userB->name = 'Roman'; $userB->username = 'romanb'; $userB->status = 'developer'; $this->_em->persist($userB); $this->_em->flush(); $this->_em->clear(); $query = $this->_em->createQuery("SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u IN (?0)"); $query->setParameter(0, array($userA, $userB));
Returns this error currently:
Object of class Doctrine\Tests\Models\CMS\CmsUser could not be converted to string
Activity
Guilherme Blanco
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Benjamin Eberlei
made changes -
| Workflow | jira [ 12990 ] | jira-feedback [ 15014 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 15014 ] | jira-feedback2 [ 16878 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 16878 ] | jira-feedback3 [ 19131 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1356, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
Fixed in https://github.com/doctrine/doctrine2/commit/3b3186ee98392802a44118cd421a3530119aa7ea