/** * @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()); }
/** * @return array */ public function listAction() { $blogs = $this->blogRepository->findAll(); $value[$this->getRuntimeIdentifier()] = $this->getStructure($blogs); $this->view->assign('value', $value); }