sfValidatorDoctrineChoice 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 , setDefaultMessage , setDefaultMessages , setDefaultOptions , setMessage , setMessages , setOption , setOptions , __construct
Method Details
-
Configures the current validator.
Available options: * model: The model class (required)
* query: A query 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
* multiple: true if the select tag must allow multiple selections
* min: The minimum number of values that need to be selected (this option is only active if multiple is true)
* max: The maximum number of values that need to be selected (this option is only active if multiple is true)
-
@see sfValidatorBase
-
Returns the column to use for comparison.
The primary key is used by default.
returns The column name
|