Unset those fields in the form configure method and it should save. It's failing the form validation before the behaviour has a chance to work.
On Sun, 2009-11-01 at 05:24 -0800, Fabrizio wrote: > Hi, > I have installed Blameable Extension in the folder > /lib/doctrine_extensions/Blameable/ > from the root of my symfony 1.3 project. > > in the > /config/doctrine/schema.yml > I have added the following code > > TableName: > tableName: table_name > actAs: > Timestampable: > .... > Sluggable: > ... > Blameable: > columns: > created: > name: creato_da > type: integer > length: 4 > updated: > name: aggiornato_da > type: int > length: 4 > relations: > created: > name: CreatoDa > class: SfGuardUser > disabled: false > updated: > name: AggiornatoDa > class: SfGuardUser > disabled: false > columns: > ... > > After I have execute a > ./symfony doctrine:build-all-reload > and clear the cache > > The fields creato_da and aggiornato_da were created with their > relations. > > But when I try to create a new record with the interface of admin > generator, getting an error: > > The item has not been saved due to some errors > $form['creato_da'] (sfWidgetFormDoctrineChoice) Required. > $form['aggiornato_da'] (sfWidgetFormDoctrineChoice) Required. > > This means that the Blameable Extension has not added those fields > with related values. > > What could be the problem? I forgot some configuration to work > correctly with symfony? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@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 -~----------~----~----~----~------~----~------~--~---