Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

skipAttributesOnUpdate seems not to work in Models

I have a model "User" that I want to validate the email-address of a user on create, but not on update.

use \Phalcon\Mvc\Model\Validator\Email,

class User extends \Phalcon\Mvc\Model {
    public $id;
    public $email;

    public function validation()
        $this->validate(new Email(array(
            "field"    => "email",
            "required" => true,

        $this->validate(new Uniqueness(array(
        "field"    => "email",
        'message' => _('A user already exists for this email address')

    public function initialize()


I have tried replacing $this->skipAttributesOnUpdate() with $this->skipAttributes(), with no luck.

I ended up with adding if(!isset($this->id)) in the validation method, is this correct? Phalcon v. 2.0.3


skipAttributesOnUpdate just ignores the specified fields in the update operation, however the attribute is still part of the model and there is a validation (Uniqueness) to be applied on that model.