Recently i embedded a form to another one and everything went just
fine, i could save a new row and also edit it without any problem... i
submitted the change to my svn repository... my pc was pretty slow so
i decided to format it, i installed WAPP and all the necessary stuff
again... i checked out my project again from the repo and runs pretty
well, except that now when i try to save a new row, the most awkward
error shows up, i googled it and i only found japanese pages and a
couple of two unrelated english pages XD

so, the files related to the embedded form are these ones:

// ../lib/form/doctrine/SiniestroForm.class.php
...
  public function configure()
  {
       $this->setWidget('nro_siniestro', new sfWidgetFormInput());
       $this->setValidator('nro_siniestro', new sfValidatorInteger());

    $vehiculo = $this->getObject()->getVehiculo();

    if (is_null($vehiculo)) {
    $vehiculo = new Vehiculo();
    $this->getObject()->setVehiculo($vehiculo);
    }

    $vehiculo_form = new VehiculoForm($vehiculo);
    $this->embedForm('Vehiculo', $vehiculo_form);
    unset($this['Vehiculo_placa']);
  }
...

// ../lib/form/doctrine/VehiculoForm.class.php
...
  public function configure()
  {
      $this->setWidget('placa', new sfWidgetFormInput());
       $this->setValidator('placa', new sfValidatorString());
  }
...

as you can see, i set the "placa" widget because is the PK of Vehiculo
class and by default symfony hides it, the same is for "nro_siniestro"
widget in SiniestroForm

now the error:

500 | Internal Server Error | Doctrine_Connection_Pgsql_Exception
SQLSTATE[42P01]: Undefined table: 7 ERROR: no existe la relación
«vehiculo_placa_seq»
LINE 1: SELECT CURRVAL('vehiculo_placa_seq')
^

for a full stack trace go here: http://pastebin.com/f5516c3fb

i did symfony doctrine:build-all-reload and symfony cc but nothing, do
you hae any ideas? thanks in advance!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to