<?php

 public function propelTestAction() {
        // Propel ORM generated Model UserQuery
        $q = \UserQuery::create();

        $q = $q->limit(100)->filterByProcessed(0);
        $users = $q->find();

        while ($users->count() ) {
            foreach ($users as $user) {
                $id = $user->getId();
                $email = $user->getEmail();
                $password = $user->getPassword();
                $this->doEcho("$id - $email - $password");
                // do stuff and set processed to 1
            }
            
            $users = $q->find();
        }
    }