pepe
unread,Jun 10, 2009, 3:33:04 PM6/10/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to symfony-es
Buenas tardes por favor me podrían ayudar con el error:
Object of class sfOutputEscaperIteratorDecorator could not be
converted to int
Tengo la siguiente accion:
public function executeValor(sfWebRequest $request)
{
$q = Doctrine_Query::create()
->select('f.frec_valor')
->from('CudiFrecuencia f, f.CudiIndicado i)//, i.CudiRegiindi r')//,
i.CudiFrecuencia f, i.CudiRegiindi r')
->where('f.frec_codigo = ?', $this->job = Doctrine::getTable
('CudiIndicado')-> find($request->getParameter('indi_codigo')));
$this->frecu = $q->fetchone();
}
En la plantilla:
<?php
echo $frecu;
echo gettype($frecu);
echo $f = (integer) $frecu;
echo gettype($f);
echo $f
?>
12object
Notice: Object of class sfOutputEscaperIteratorDecorator could not be
converted to int in C:\xampp\htdocs\cudid\apps\principal\modules
\control\templates\valorSuccess.php on line 5
1integer1
el valor de la variable es 12 tipo object, la quiero convertir a
integer, aparentemente se convierte pero me cambia el valor a 1.
Como puedo utilizar el valor devuelto de la consulta. O como puedo
convertirla.
Muchas Gracias.
Jose