views:

38

answers:

1

i am getting this error when i try the following Statement

Statement

$status = $this->User->StatusMessage->find('first', array(
    'contain' => array(
        'StatusMessageReply' => array(
            'User' => array('condition' => array('User.id' => 1 ))
        )
    )
));

Error Model "User" is not associated with model "User" > [CORE\cake\libs\model\behaviors\containable.php, line 363]

Users hasMany StatusMessage and StatusMessageReply

A: 

You write condition instead of conditions.

Adam