I am using the new web mvc utils helper methods that now shorten the once repetitive code in this file. However, as far as configuring the entity manager goes, these helpers only allow me to target that plugin's database, which is fine for most cases, but I have one specific case where different plugins must interact with the same database, which belongs to another plugin.
The entity manager parameters should probably allow one extra optional parameter for specifying the id of the plugin whose database we are addressing.
P.S: [FR] for feature request ;)