propelorm / sfPropelORMPlugin

symfony 1.x plugin for Propel.
http://www.propelorm.org/
Other
109 stars 95 forks source link

Added forced array type on query_methods parameter #199

Closed rozwell closed 11 years ago

rozwell commented 11 years ago

It took me a while to figure out what's wrong, had:

$this->setValidator('xxx', new sfValidatorPropelChoice(array(
    // (...)
    'query_methods' => 'someQueryMethod',
)));

When it should be:

$this->setValidator('xxx', new sfValidatorPropelChoice(array(
    // (...)
    'query_methods' => array('someQueryMethod'),
)));

Now both examples will work.