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