Thanks for the tip but i get this sql error
Unknown column Model2.id' in 'field list'

Because there is an array in Model2.

[0]

[1]

I dont know how do i get an coorect dataset


On 26 Mrz., 21:31, Martin Radosta <martinrado...@gmail.com> wrote:
> try
>      'recursive' => -1
>
> On 03/26/2010 05:23 PM, amarradi wrote:
>
> > I have to correct it because in the that have to be an other value
>
> >>   $this->set('variable', $this->Model1->find('first',array(
> >>                  'conditions' =>  array('Model1.id' =>  $id),
> >>                  'recursive' =>    1,
> >>                  'fields' =>
> >> array('Model1.id','Model1.title','Model1.description')
> >>              )
> >>              )
> >>              );
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > 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 unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> > To unsubscribe from this group, send email to 
> > cake-php+unsubscribegooglegroups.com or reply to this email with the words 
> > "REMOVE ME" as the subject.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to