I had an issue with an array style data source, hardcoded in the model, the
only solution was to hack it to work.

On 22 February 2011 18:57, cricket <zijn.digi...@gmail.com> wrote:

> On Tue, Feb 22, 2011 at 7:56 AM, Greg Skerman <gsker...@gmail.com> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Kind Regards
 Stephen @ NinjaCoderMonkey

 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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to