the model name should be singular(Teacher) but u r giving plural(Teachers)

On Thu, Mar 12, 2009 at 12:06 AM, Dave Maharaj :: WidePixels.com <
[email protected]> wrote:

>  Not sure what I am doing here. Been trying to no avail.
>
> What I am trying to do is find the id of the logged in user from TEACHERS
> table WHERE the user_id is $this->Auth->user('id');
>
> $conditions = array('Teachers.user_id'=>$userId);
> $fields = 'Teachers.user_id';
>
> $teacherID = $this->User->Teacher->find('list', compact('conditions',
> 'fields'));
>
> Ideas on what I am doing wrong?
>
> Dave
>
> >
>


-- 
Regards,
Gayatri,
IT Associate,
IEG,
Hyderabad.

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