Pass form to prePersist and postPersist methods