You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught TypeError: Argument 1 passed to Phalcon\Mvc\Model::validate() must implement interface Phalcon\ValidationInterface, instance of Phalcon\Validation\Validator\Uniqueness
usePhalcon\Mvc\Model,
Phalcon\Db\Column,
Phalcon\Validation\Validator\Uniqueness;
class Test extends Model {
publicfunctionvalidation() {
$a = newUniqueness(
array(
"field" => "telephone",
"message" => "error"
)
);
return$this->validationHasFailed() != true;
}
}
Uniqueness has implemented Phalcon\Validation\ValidatorInterface
The text was updated successfully, but these errors were encountered:
Uniqueness has implemented Phalcon\Validation\ValidatorInterface
The text was updated successfully, but these errors were encountered: