On Tue, Feb 22, 2011 at 7:56 AM, Greg Skerman <[email protected]> wrote:
> Hi,
>
> I'm curious as to how models which use different datasources handle
> relationships?
>
> If i was to create a datasource to consume a web service, and I wanted it to
> pick up related fields via a HasOne relationship to a model using a mysql
> database table, will cake just automagically resolve this, or do I need to
> do something cute in the datasource?
>
> Sorry for no code examples or "trying it" first - its just a question that
> popped into my head and a quick browse of the book didn't seem to provide
> any insight.

I was also wondering this. Like you, it popped into my head last week
while reading a discussion here about datasources. And I haven't got
round to experimenting with it. My first thought was that it would be
resolved somehow through the model cache. But how would the queries
themselves be created? Perhaps we can't have associated models using
different datasources.

-- 
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

Reply via email to