DoctrineOrmTypeGuesser
in package
implements
FormTypeGuesserInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- $registry : mixed
- $cache : mixed
- $useDeprecatedConstants : mixed
- __construct() : mixed
- guessMaxLength() : ValueGuess|null
- Returns a guess about the field's maximum length.
- guessPattern() : ValueGuess|null
- Returns a guess about the field's pattern.
- guessRequired() : ValueGuess|null
- Returns a guess whether a property of a class is required.
- guessType() : TypeGuess|null
- Returns a field guess for a property name of a class.
- getMetadata() : mixed
- getRealClass() : string
Properties
$registry
protected
mixed
$registry
$cache
private
mixed
$cache
= []
$useDeprecatedConstants
private
static mixed
$useDeprecatedConstants
Methods
__construct()
public
__construct(ManagerRegistry $registry) : mixed
Parameters
- $registry : ManagerRegistry
Return values
mixed —guessMaxLength()
Returns a guess about the field's maximum length.
public
guessMaxLength(mixed $class, mixed $property) : ValueGuess|null
Parameters
- $class : mixed
-
The fully qualified class name
- $property : mixed
-
The name of the property to guess for
Return values
ValueGuess|null —A guess for the field's maximum length
guessPattern()
Returns a guess about the field's pattern.
public
guessPattern(mixed $class, mixed $property) : ValueGuess|null
Parameters
- $class : mixed
-
The fully qualified class name
- $property : mixed
-
The name of the property to guess for
Return values
ValueGuess|null —A guess for the field's required pattern
guessRequired()
Returns a guess whether a property of a class is required.
public
guessRequired(mixed $class, mixed $property) : ValueGuess|null
Parameters
- $class : mixed
-
The fully qualified class name
- $property : mixed
-
The name of the property to guess for
Return values
ValueGuess|null —A guess for the field's required setting
guessType()
Returns a field guess for a property name of a class.
public
guessType(mixed $class, mixed $property) : TypeGuess|null
Parameters
- $class : mixed
-
The fully qualified class name
- $property : mixed
-
The name of the property to guess for
Return values
TypeGuess|null —A guess for the field's type and options
getMetadata()
protected
getMetadata(mixed $class) : mixed
Parameters
- $class : mixed
Return values
mixed —getRealClass()
private
static getRealClass(string $class) : string
Parameters
- $class : string