Okay! I'm a nutter! I didn't even read the docs properly on plugin model
relationships heh...
Changed my relationships to array("Universe.UniverseModelName"); and it's
all better now :)
On 21 February 2012 10:41, Stephen <[email protected]> wrote:
> Now that I've managed to get to my desk and do some odd jobs I prepared
> this:
>
> http://pastie.org/private/abmqskzlltxsi6afigbkzw
>
> Maybe it'll help?
>
>
> On 21 February 2012 08:10, Stephen Speakman <
> [email protected]> wrote:
>
>> Hi everyone
>>
>> Im developing an inhouse plugin to be shared by many apps. This plugin
>> has an app model which states that it should use a separate database config
>> which was working initially.
>>
>> The problem occured when I set up a "hasMany - belongsTo" relationship
>> between universe_client.php and universe_client_host.php
>>
>> The app is now searching for the universe_client_hosts table in the
>> default connection.
>>
>> I've tried caching, checking persistent, using useDbConfig in each model,
>> making sure the username and password for each connection are unique.
>>
>> Besides a cheap hack can anybody think of a solution?
>>
>> Cheers in advance
>>
>> Stephen
>> www.ninjacodermonkey.co.uk
>>
>> Sent from my iPhone
>>
>
>
>
> --
> Kind Regards
> Stephen
>
> http://www.ninjacodermonkey.co.uk
>
>
>
--
Kind Regards
Stephen
http://www.ninjacodermonkey.co.uk
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php