public function beforeValidation() { parent::beforeValidation(); if ($this->access === null) { $this->access = new \Phalcon\Db\RawValue('""'); } }