Answer the question
In order to leave comments, you need to log in
Yii update doesn't always work, what's the problem?
Good afternoon.
I ran into a problem and I can't figure it out.
Some records are updated, some are not.
I even added 2 identical entries, in all respects, well, except for the id. One is updated, the other is not.
$blogs = Blogs::model()->findByPk($id);
$blogs->updated_at = new CDbExpression("NOW()");
$blogs->status = $status;
$blogs->save(); // возвразает false =(
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question