[WIP][3.9] Transform api_* tables to doctrine entities