fork download
  1. <?php
  2.  
  3. $protocolRepository = $doctrine->getRepository('Protocol');
  4. $userRepository = $doctrine->getRepository('User');
  5. $statisticVoteRepository = $doctrine->getRepository('StatisticVote');
  6.  
  7. while(true) {
  8. $em = $doctrine->getManager();
  9. $users = $userRepository->findAll();
  10.  
  11. /** @var \SIP\ResourceBundle\Entity\User\User $user */
  12. foreach ($users as $user) {
  13.  
  14. $svqb = $statisticVoteRepository->createQueryBuilder('v')
  15. // ->leftJoin('v.users', 'u')
  16. ->where('v.user = :user')->setParameter('user', $user)
  17. ;
  18.  
  19.  
  20. ///////////////////////////////////////////////
Runtime error #stdin #stdout #stderr 0.02s 24448KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected end of file in /home/S56muU/prog.php on line 20