This problem may occur when you are overwriting beforeSave,beforeInsert or beforeUpdate function for that model,

Your beforeSave function should look like this:

public function beforeSave($insert)
    if (parent::beforeSave($insert)) {
        //Your code...
        return true;
    return false;

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>