Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'DDC-1713'

  • Loading branch information...
commit 2e79637be83449f9558e3f1eb326b582299a50eb 2 parents 48aba0a + 03d5922
Benjamin Eberlei authored May 27, 2012
13  tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php
@@ -545,5 +545,18 @@ public function testInvalidOrientation()
545 545
         $repo = $this->_em->getRepository('Doctrine\Tests\Models\CMS\CmsUser');
546 546
         $repo->findBy(array('status' => 'test'), array('username' => 'INVALID'));
547 547
     }
  548
+
  549
+    /**
  550
+     * @group DDC-1713
  551
+     */
  552
+    public function testFindByAssocationArray()
  553
+    {
  554
+        $repo = $this->_em->getRepository('Doctrine\Tests\Models\CMS\CmsArticle');
  555
+        $data = $repo->findBy(array('user' => array(1, 2, 3)));
  556
+
  557
+        $query = array_pop($this->_sqlLoggerStack->queries);
  558
+        $this->assertEquals(array(1,2,3), $query['params'][0]);
  559
+        $this->assertEquals(\Doctrine\DBAL\Connection::PARAM_INT_ARRAY, $query['types'][0]);
  560
+    }
548 561
 }
549 562
 

0 notes on commit 2e79637

Please sign in to comment.
Something went wrong with that request. Please try again.