sfValidatorPropelChoice validates that the value is one of the rows of a table.
Method Summary
-
configure()
Configures the current validator.
-
doClean()
@see sfValidatorBase
-
string
getColumn()
Returns the column to use for comparison.
addMessage , addOption , addRequiredOption , asString , clean , configure , doClean , getCharset , getDefaultMessages , getDefaultOptions , getEmptyValue , getErrorCodes , getMessage , getMessages , getMessagesWithoutDefaults , getOption , getOptions , getOptionsWithoutDefaults , getRequiredOptions , hasOption , isEmpty , setCharset , setDefaultMessages , setDefaultOptions , setMessage , setMessages , setOption , setOptions , __construct
Method Details
-
Configures the current validator.
Available options: * model: The model class (required)
* criteria: A criteria to use when retrieving objects
* column: The column name (null by default which means we use the primary key)
must be in field name format
* connection: The Propel connection to use (null by default)
-
@see sfValidatorBase
-
Returns the column to use for comparison.
The primary key is used by default.
returns The column name
|