This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

sfFilter Doctrine getId postExecute

This is for discussion, mainly on 1.x but there's some 2.x topics here too.

sfFilter Doctrine getId postExecute

by kamusruben » Tue Jul 08, 2014 8:03 am

Hello people

I'm trying to implement an audit log in Backend app using my own sfFilter, I can save all information required like User, module, actions and id. This information is captured through URL and sfContext, but, when action is create I don´t know how obtain this ID.

I'd like to know how obtain the SQL that is sending in sfRequest but I'm new in symfony and don´t know exactly classes that I can use in sfFilters.

My own sfFilter is configurated like this:
Code: Select all
#app/backend/config/filters.yml
rendering: ~
security:  ~
myOwnFilter:
  class: auditFilter
cache:     ~
execution: ~

I don't know if I have to use a param or if filter have to be execute before cache for obtain the ID after execute save method on request.

Please help me with these simple questions, I prefer to use one class that manage Doctrine with SQL sending on request.

Thanks
kamusruben
Junior Member
 
Posts: 1
Joined: Sat Jun 28, 2014 5:20 pm