* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * @package symfony.plugins * @subpackage sfDoctrine * @author Olivier Verdier * @version SVN: $Id: sfDoctrineDataRetriever.class.php 3437 2007-02-10 09:04:27Z chtito $ */ class sfDoctrineDataRetriever { static public function retrieveObjects($class, $peer_method = 'findAll') { if (!$peer_method) $peer_method = 'findAll'; $table = sfDoctrine::getTable($class); return call_user_func(array($table, $peer_method)); } }