Problemas symfony Jobeet tutorial dia 3 Error. Windows, MySQL

87 views
Skip to first unread message

chrisai

unread,
Nov 24, 2009, 8:02:58 PM11/24/09
to symfony-es
Hola alguien podria ayudarme con este error del tutorial de Jobeet?

Muchas Gracias!

Class "JobeetCategory" must implement a "__toString" method to be
rendered in a "sfWidgetFormPropelChoice" widget

at ()
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfPropelPlugin\lib\widget
\sfWidgetFormPropelChoice.class.php line 98 ...

95. $methodValue = $this->getOption('method');
96. if (!method_exists($this->getOption('model'),
$methodValue))
97. {
98. throw new RuntimeException(sprintf('Class "%s" must
implement a "%s" method to be rendered in a "%s" widget', $this-
>getOption('model'), $methodValue, __CLASS__));
99. }
100.
101. foreach ($objects as $object)

Jose Regalado

unread,
Nov 26, 2009, 8:54:27 AM11/26/09
to symfo...@googlegroups.com
Leer y leer..
 
--
José Luis Regalado
bashman
Linux User nº 280381

Carlos Martínez

unread,
Nov 26, 2009, 9:14:38 AM11/26/09
to symfo...@googlegroups.com
Ahí el error te lo dice: Class "JobeetCategory" must implement a "__toString" method

Debes implementar el metodo __toString en la clase JobeetCategory. A leer y leer sr. (=

Saludos
--
Carlos Martínez Sánchez
Ing. Ejec. Informática
(09) - 2657574
Reply all
Reply to author
Forward
0 new messages