Dear all,

I have a function in a controller:

function getHotelmaster($id)
        {
                $params = array(
                        'conditions' => array('Hotelmaster.id' => $id),
//array of conditions
                        'recursive' => -1 //int
                );
                $hotelmaster = $this->Hotelmaster->find($params);
                $this->set('hotelmaster', $hotelmaster);
                return $hotelmaster ;
        }

Causing following error message 
SQL Error: 1054: Unknown column 'conditions' in 'where clause'

When called via 
$this->data =
$this->Hotel->requestAction('hotelmasters/getHotelmaster/'.$hotelmaster_
id);
>From another controller.

It seems my syntax for find isn't ok, but as far as I can see I follow
correctly
http://manual.cakephp.org/view/73/Retrieving-Your-Data

What I want to achive is retriving my dataset without recursive lookups.

Anyone a hint?

Thanks a lot

Anja

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to