i got a question in DQL how to pass session User id
$vars['mood'] = Doctrine_Query::create()
->select(’m.mood_name, a.id, m.account_id’)
->from(’mood m, m.account a’)
->where(’m.account_id=”7″‘)
i want to show data according to current logged user.
m.account_id=Current_User::user()->id;
this is not working