class PropelTypeGuesser implements FormTypeGuesserInterface
Propel Type guesser.
Methods
| TypeGuess |
guessType(string $class, string $property)
Returns a field guess for a property name of a class |
|
| Guess |
guessRequired(string $class, string $property)
Returns a guess whether a property of a class is required |
|
| Guess |
guessMaxLength(string $class, string $property)
Returns a guess about the field's maximum length |
|
| Guess |
guessPattern(string $class, string $property)
Returns a guess about the field's pattern |
Details
at line 31
public TypeGuess
guessType(string $class, string $property)
Returns a field guess for a property name of a class
at line 106
public Guess
guessRequired(string $class, string $property)
Returns a guess whether a property of a class is required
at line 116
public Guess
guessMaxLength(string $class, string $property)
Returns a guess about the field's maximum length
at line 135
public Guess
guessPattern(string $class, string $property)
Returns a guess about the field's pattern
- When you have a min value, you guess a min length of this min (LOW_CONFIDENCE) , lines below
- If this value is a float type, this is wrong so you guess null with MEDIUM_CONFIDENCE to override the previous guess.
Example:
You want a float greater than 5, 4.512313 is not valid but length(4.512314) > length(5)