Re: containable on deep model relationships

2009-02-16 Thread WebbedIT
I asked many questions on here before eventually realising Cake will not automatically join a deep ( User - Event - EventType) belongsTo association so recursive would not help, but I'm certain contain should catch it?!? The other option is to force a join from User to EventType by unbinding the

Re: containable on deep model relationships

2009-02-16 Thread mscdex
On Feb 16, 4:59 am, WebbedIT p...@webbedit.co.uk wrote: I asked many questions on here before eventually realising Cake will not automatically join a deep ( User - Event - EventType) belongsTo association so recursive would not help http://book.cakephp.org/view/439/recursive

Re: containable on deep model relationships

2009-02-16 Thread WebbedIT
mscdex: Is that post supposed to explain something to me? If so, then I'm afraid you will have to be a bit more descriptive. I happily bow to those who know more than me (and I concede that is most of the active members of the group, including yourself after answering a unique id issue for me

Re: containable on deep model relationships

2009-02-16 Thread mscdex
On Feb 16, 12:29 pm, WebbedIT p...@webbedit.co.uk wrote: I happily bow to those who know more than me (and I concede that is most of the active members of the group, including yourself after answering a unique id issue for me last week) but the book's example for recursive does not contain a

Re: containable on deep model relationships

2009-02-16 Thread brian
Maybe this is related to what you're discussing (includes solution): http://groups.google.com/group/cake-php/browse_thread/thread/9b4f86efc70348e1/67c4776d14362750?show_docid=67c4776d14362750pli=1 On Mon, Feb 16, 2009 at 2:42 PM, mscdex msc...@gmail.com wrote: On Feb 16, 12:29 pm, WebbedIT

Re: containable on deep model relationships

2009-02-15 Thread mike
oops, that was I typo, I have that already, with the end paren. I've also tried what Miles suggested, same thing any other ideas? On Feb 14, 5:25 am, WebbedIT p...@webbedit.co.uk wrote: I surprised that find call fetches any data as you have your contain criteria mixed in with your

Re: containable on deep model relationships

2009-02-15 Thread mscdex
On Feb 15, 12:00 pm, mike mwu...@gmail.com wrote: any other ideas? Did you try specifying a high enough 'recursive' level? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Re: containable on deep model relationships

2009-02-14 Thread WebbedIT
I surprised that find call fetches any data as you have your contain criteria mixed in with your conditions array. It should be something like: $this-User-find('all', array( 'conditions' = array('User.id' = $user_id), 'contain' = array( 'Event' = array( 'Eventtype' = array(

containable on deep model relationships

2009-02-13 Thread mike
I got user has many event, event belongsTo eventtype and user, eventtype has many event make sense? did I set this up right? I trying to fetch all the data for one event. Following the example in the cookbook, I tried this: $this-User-find('all', array( 'conditions' =

Re: containable on deep model relationships

2009-02-13 Thread Miles J
Try this: 'contain' = array('Event' = array( 'Eventtype.id', 'Eventtype.eventName')) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To