I used to have soft delete in symfony 1.4 setting except datetime of deletion also the username of the user who soft deleted the object. It was easy then with using sfContect::getInstance() inside the model.
Now this is not possible. So in short what's the best practice to get the username inside model and particular in soft delete behavior? Any ideas?
Thanks a lot.
You can use https://github.com/glorpen/GlorpenPropelBundle to inject services into your model or use event dispatcher to handle this.