Exemplo n.º 1
0
 /**
  * @test
  */
 public function inConditionWorksWithQueryResultOnSecondCall()
 {
     $queryResult = $this->blogRepository->findAll();
     $inQuery = $this->postRepository->createQuery();
     $inQuery->matching($inQuery->in('blog', $queryResult));
     $this->assertSame(11, $inQuery->count());
     $newInQuery = $this->postRepository->createQuery();
     $newInQuery->matching($newInQuery->in('blog', $queryResult));
     $this->assertSame(11, $newInQuery->count());
 }
Exemplo n.º 2
0
 /**
  * @return array
  */
 public function listAction()
 {
     $blogs = $this->blogRepository->findAll();
     $value[$this->getRuntimeIdentifier()] = $this->getStructure($blogs);
     $this->view->assign('value', $value);
 }