| 1 | <?php |
||
| 12 | abstract class SearchForm extends AbstractType |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * {@inheritdoc} |
||
| 16 | */ |
||
| 17 | public function configureOptions(OptionsResolver $resolver) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function getName() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Will return string that can be used to configure "property_path" parameter |
||
| 35 | * of single field in a form. |
||
| 36 | * |
||
| 37 | * @param string $criteriaName is a name of criteria |
||
| 38 | * @param string|null $propertyName is a name of parameter inside criteria. |
||
| 39 | * If null $modelName will be used |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | protected function getPath($criteriaName, $propertyName = null) |
||
| 51 | } |
||
| 52 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: