hello have empty object how can i call object from indexSuccess.php ??
in CotsationTable.class public function getTotals(Doctrine_Query $q = null) { $q=Doctrine_Query::create() -> SELECT('SUM(montant)') ->from('Cotisation'); $montant = $q->fetchOne(); return $montant;} in action i put public function executeIndex(sfWebRequest $request) { $this->bilan = Doctrine_core::getTable('Cotisation')->getTotals($montant); } in indexSuccess.php <?php print_r($bilan); ?> <?php foreach($bilan as $value): ?> <?php echo $value ?> <?php endforeach; ?> but i have empty object Cotisation Object( [_node:protected] => [_id:protected] => Array ( ) [_data:protected] => Array ( [id] => Doctrine_Null Object ( ) [id_personne] => Doctrine_Null Object ( ) [Titre] => Doctrine_Null Object ( ) [Montant] => Doctrine_Null Object ( ) ) [_values:protected] => Array ( [SUM] => 300 ) thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en