fork download
  1. <?php
  2.  
  3. public function propelTestAction() {
  4. // Propel ORM generated Model UserQuery
  5. $q = \UserQuery::create();
  6.  
  7. $q = $q->limit(100)->filterByProcessed(0);
  8. $users = $q->find();
  9.  
  10. while ($users->count() ) {
  11. foreach ($users as $user) {
  12. $id = $user->getId();
  13. $email = $user->getEmail();
  14. $password = $user->getPassword();
  15. $this->doEcho("$id - $email - $password");
  16. // do stuff and set processed to 1
  17. }
  18.  
  19. $users = $q->find();
  20. }
  21. }
Runtime error #stdin #stdout #stderr 0.01s 20592KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC) in /home/O54RmP/prog.php on line 3