コード例 #1
0
ファイル: InTest.php プロジェクト: Mr-Robota/TYPO3.CMS
 /**
  * @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());
 }
コード例 #2
0
ファイル: BlogController.php プロジェクト: plan2net/TYPO3.CMS
 /**
  * @return array
  */
 public function listAction()
 {
     $blogs = $this->blogRepository->findAll();
     $value[$this->getRuntimeIdentifier()] = $this->getStructure($blogs);
     $this->view->assign('value', $value);
 }