In your template, the real array in $var is protected (for output safety purposes) by an sfOutputEscaperArrayDecorator. You can still access to the original (array) data with $var->getRawValues().
-----Message d'origine----- De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] De la part de Joshua Envoyé : jeudi 22 avril 2010 23:24 À : symfony users Objet : [symfony-users] doSelect array result converted to ArrayDecorator in template symfony version 1.4.4 In the action class I'm doing $this->var = ClassPeer::doSelect($c); When I print_r($this->var) it is an array but in the indexSuccess.php template it is sfOutputEscaperArrayDecorator Object In the template when I try to unset($var[$x]); I get escape error [22-Apr-2010 21:06:49] Cannot unset values. WTF? -- 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 -- 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