sfValidatorDoctrineChoice validates that the value is one of the rows of a
table.
Method Summary
-
configure($options = array(), $messages = array())
Configures the current validator.
-
doClean($value)
-
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 , setInvalidMessage , setMessage , setMessages , setOption , setOptions , setRequiredMessage , __construct
Method Details
-
configure ($options = array(), $messages = array())
Browse code
Configures the current validator.
Available options: * model: The model class (required)
* alias: The alias of the root component used in the query
* 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
* connection: The Doctrine connection to use (null by default)
-
-
Returns the column to use for comparison.
The primary key is used by default.
returns The column name
|