add session.flush()s to AbstractAction