Holy /&%$·&(*** :X ...... well i have an excuse: it was late!!!
of course you're right, the code is: $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->setOrdenado($ordenado); $audiencia->setCorrelativo($correlativo); $audiencia->setTipoProcesoId($tipo_proceso_id); $audiencia->setDenunciaId($denuncia_id); $audiencia->setDenunciadoId($denunciado_id); $audiencia->setDenuncianteId($denunciante_id); $audiencia->setSistema(1); $audiencia->setFechaCita($fecha_cita); $audiencia->setHoraCita($hora_cita); $audiencia->save($con); El mié, 03-02-2010 a las 22:30 +0100, Frank Stelzer escribió: > 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. -- 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.