[3.9] Migrate registration table to doctrine entity && refactor registration API