Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'DDC-1713'

  • Loading branch information...
commit 2e79637be83449f9558e3f1eb326b582299a50eb 2 parents 48aba0a + 03d5922
@beberlei beberlei authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php
View
13 tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php
@@ -545,5 +545,18 @@ public function testInvalidOrientation()
$repo = $this->_em->getRepository('Doctrine\Tests\Models\CMS\CmsUser');
$repo->findBy(array('status' => 'test'), array('username' => 'INVALID'));
}
+
+ /**
+ * @group DDC-1713
+ */
+ public function testFindByAssocationArray()
+ {
+ $repo = $this->_em->getRepository('Doctrine\Tests\Models\CMS\CmsArticle');
+ $data = $repo->findBy(array('user' => array(1, 2, 3)));
+
+ $query = array_pop($this->_sqlLoggerStack->queries);
+ $this->assertEquals(array(1,2,3), $query['params'][0]);
+ $this->assertEquals(\Doctrine\DBAL\Connection::PARAM_INT_ARRAY, $query['types'][0]);
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.