Hello, I have attached a behavior in my model Profile.
This behavior saves file to me when I call save();
However, it works for all rows except for one!
Example:
// WORKS
$profile = Profile::model()->findByPk(4);
$profile->attributes = $_POST['Profile'];
$profile->save();
DOESN’T WORKS
$profile = Profile::model()->findByPk(5);
$profile->attributes = $_POST['Profile'];
$profile->save();
Obs.: Yes, both pks exists in my table.
Can someone give me a help?