migration all post functions from db2php to doctrine