Search code examples
symfony1iteratorpropel

In Symfony, How to iterate over the data returned by doSelect?


In Propel ( using in Symfony ), I am using the following:

$data = ObjectPeer::doSelect($myCriteria); // $myCriteria is Criteria Object

How can I iterate over the $data?


Solution

  • I guess:

    foreach ($data as $object)