Hi,
about the last problem, now I have upgraded symfony at symfony
1.4.0RC2 and sfDoctrineGuardPlugin to trunk.
The problem now is slightly different.

When I create a new record, all works fine ( "creato_da" and
"aggiornato_da" are set with user id).

But when I update a record from admin generator, the field "creato_da"
are set to null.

Watching logs, the performed query is:

UPDATE table_name SET filed_name = ?, creato_da = ?, aggiornato_da
= ?, aggiornato_il = ?, slug = ? WHERE id = ? - (test, , 2, 2009-11-29
17:02:06, slug-test, 8)

The problem is here, doctrine set the field  creato_da, even if it is
empty.

Any advice on this problem?



On 2 Nov, 13:44, Fabrizio <[email protected]> wrote:
> But a strange thing happens.
>
> If I edit a record and click on the button "Save"     without having
> changed the data on the form, the fields "creato_da" and
> "aggiornato_da" are set to null.
> Debugging on this, I noticed that in this case the methods preInsert,
> preUpdate and preDqlUpdate (from the
> Doctrine_Template_Listener_Blameable class) are not called.

--

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