The differences between "$model->attributes=$_POST['form']" and "$model->setAttributes($_POST['form'])".

Who can tell me about the differences between “$model->attributes=$_POST[‘form’]” and “$model->setAttributes($_POST[‘form’])”.

It’s the same… when you use $model->attributes=$_POST[‘form’]

yii calls $model->setAttributes($_POST[‘form’])