What should this snippet do?
You do not call any setter of your model.
btw:
'.date('Y').'-'.date('m').'-01' -> date('Y-m').'-01' looks better :P
Am 03.02.2010 um 22:23 schrieb Germana Oliveira:
im trying to make the system to save some data, so i do this:
$audiencia = new Audiencia();
//DATOS//
$ordenado =
sfContext::getInstance()->getUser()->getEmpleadoUsuario('id');
$correlativo = Audiencia::obtenerCorrelativo();
$tipo_proceso_id = $orden->getTipoProcesoId();
$denunciado_id = $orden->getDenunciadoId();
if( !is_null($denuncia) ){ $denuncia_id =
$denuncia->getId(); }
$fecha_cita = '.date('Y').'-'.date('m').'-01';
$hora_cita = '0000-00-00 00:00:00';
$audiencia->save($con);
i have done it like thie before, but this time seems like something
is not right ... i guess is the fecha_cita and hora_cita fields.
some ideas???
PD: No error message is show.
Thanks!!!
--
Germana Oliveira
germanaoliveirab arroba gmail punto com
http://626f67.wordpress.com
http://slcarabobo.wordpress.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-us...@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
.
--
You received this message because you are subscribed to the Google Groups "symfony
users" group.
To post to this group, send email to symfony-us...@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.