symfony API

sfDoctrineUniqueValidator Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfDoctrineUniqueValidator validates that the value does not already exists

Inheritence

sfDoctrineUniqueValidator  <  sfValidator

Method Summary

  • execute(&amp;$value, &amp;$error, $value, $error)
  • bool initialize((sfContext) $context, $parameters = null)
    Initialize this validator.

Methods inherited from sfValidator

execute , getContext , getParameter , getParameterHolder , hasParameter , initialize , setParameter , __construct

Method Details

  • execute (&$value, &$error, $value, $error) Browse code

    &$value
    &$error
    $value
    $error

  • (bool) initialize ((sfContext) $context, $parameters = null) Browse code

    $context The current application context.
    $parameters An associative array of initialization parameters.

    Initialize this validator.

    returns true, if initialization completes successfully, otherwise false.