fix doctrine config
generate media classes