Development

/branches/1.3/lib/plugins/sfDoctrinePlugin/lib/validator/sfValidatorDoctrineChoiceMany.class.php

You must first sign up to be able to contribute.

root/branches/1.3/lib/plugins/sfDoctrinePlugin/lib/validator/sfValidatorDoctrineChoiceMany.class.php

Revision 23810, 0.9 kB (checked in by Kris.Wallsmith, 4 years ago)

[1.3] set svn:eol-style property to native and svn:keywords property to Id on all .php files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
6  * (c) Jonathan H. Wage <jonwage@gmail.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 /**
13  * sfValidatorDoctrineChoiceMany validates than an array of values is in the array of the existing rows of a table.
14  *
15  * @package    symfony
16  * @subpackage doctrine
17  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
18  * @author     Jonathan H. Wage <jonwage@gmail.com>
19  * @version    SVN: $Id$
20  */
21 class sfValidatorDoctrineChoiceMany extends sfValidatorDoctrineChoice
22 {
23   /**
24    * Configures the current validator.
25    *
26    * @see sfValidatorPropelChoice
27    */
28   protected function configure($options = array(), $messages = array())
29   {
30     parent::configure($options, $messages);
31
32     $this->setOption('multiple', true);
33   }
34 }
35
Note: See TracBrowser for help on using the browser.