[eluser]molistok[/eluser]
Hi,
I don't understand what is my error, can any help me?
I do this in a function of my model 'member_group':
$this->where('user_id',$user_id)->where('group_id',$group_id)->limit(1);
$members=$this->find_all();
foreach($members as $member)
{
$member->joined_at=date('Y-m-d H:i
');
$ret=$member->save();
...
}
If I look in my Database, I see that the row aren't updated. And I can see new row. I have checked that the find_all method found the row. Can any help me please?
Thanks.