[FR] - use new mvc utils helpers to connect to another plugin's database

13 views
Skip to first unread message

Tiago Silva

unread,
May 31, 2011, 2:47:27 PM5/31/11
to colony...@googlegroups.com
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 ;)

João Magalhães

unread,
May 31, 2011, 3:13:50 PM5/31/11
to colony...@googlegroups.com
I'll take care of the problem.
I will post here once I've commited the required changes.

João Magalhães

unread,
May 31, 2011, 4:35:10 PM5/31/11
to colony...@googlegroups.com
Should be working now using the configuration_plugin key in the parameters map with the plugin you want to use for configuration base path.
These changes are included in commit 14515.

Tiago Silva

unread,
Jun 1, 2011, 6:57:50 AM6/1/11
to colony...@googlegroups.com
Tried it out and it works fine ;) thanks :)

2011/5/31 João Magalhães <joa...@hive.pt>
Reply all
Reply to author
Forward
0 new messages