The 'one' you're looking for is called 'first'.
Then, feed the arguments to find() in the right order:

$this->Model->find(
        'first',
        array(
                'conditions' => array('slug' => $slug),
                'contain' => array('Listing')
        )
);

On 26 Aug 2008, at 14:01, WildFox wrote:

>
> All of the examples ive seen with Containable use $this->Model-
>> find('all', array('contain' => array('Stuff'))); - However, how can
> you use 'contain' with a simple find one? Is there such thing as  
> $this-
>> Model->find('one')?
>
> I tried the following, which is also using the where param but its not
> working, in particular it complains about Category.Array column not
> found: $this->set('theCategory', $this->Category->find(array('slug' =>
> $slug), array('contain' => array('Listing'))));
>
> Any wisdom?
> >


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