ReflectionDriver
class ReflectionDriver implements MappingDriver (View source)
A mapping driver that use Reflection and DocComments to generate class metadata
This driver is compatible with Doctrine ORM ClassMetadata with some missing feature support.
Constants
| PUBLIC_PROPERTY_AUTO_MAPPING |
Map all public properties as fields |
| LIFECYCLE_METHOD_AUTO_MAPPING |
Map method with a name corresponding to a lifecycle event as a lifecycle callback |
| EMBED_PARENT |
Embed parent fields and associations |
| ASSOCIATION_TARGET_SHORT_NAME |
When possible, keep short class names for association target class. This flag is mostly used for compatibility with other Doctrine drivers. |
| TAG_ENTITY |
|
| TAG_FIELD |
|
| TAG_ID |
|
| TAG_MANY_TO_MANY |
|
| TAG_MANY_TO_ONE |
|
| TAG_ONE_TO_MANY |
|
| TAG_ONE_TO_ONE |
|
| TAG_OPTIONS |
Field mapping options. |
| TAG_EXTRA |
Extra field metadata that should be used for other purpose than object mapping (ex. UI attributes). |
| MAPPING_FIELDS |
|
| MAPPING_ASSOCIATIONS |
|
Properties
| $docBlockTagPrefix | The PHPDoc tag prefix used in PHP source files |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Set the class containing the list of available events
No description
No description
No description
No description
No description
No description
Invoke class metadata instance method only if it exists.
No description
No description
Call generator type-specific metadata methods.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 108
__construct(string[] $paths, integer $flags = 0)
at line 123
getInflector()
at line 134
setInflector(Inflector $inflector)
at line 139
getAllClassNames()
at line 187
isTransient($className)
at line 198
loadMetadataForClass($className, $metadata)
at line 217
protected
postprocessAssociationMappings($associations, $context = array())
at line 227
protected
postprocessAssociationMapping($mapping, $mapFunction, $context = array())
at line 318
protected
getIdentifierMapping($className, $metadata)
at line 337
protected
cacheMetadataForClass($className, $metadata)
at line 527
protected
getTableNameFromClassName($className)
at line 533
protected
getQualifiedClassName($className, $namespace)
at line 547
protected ReflectionClass
getEventConstantsClass()
at line 557
static protected
parseIdGeneratorType($v, ClassMetadata $metadata)
at line 574
protected
setEventConstantClass(string|ReflectionClass $class)
Set the class containing the list of available events
at line 579
protected
mapFields(ClassMetadata $metadata, $mappings = [])
at line 611
protected
mapAssociations(ClassMetadata $metadata, $mappings)
at line 624
protected
processProperties($visited, ClassMetadata $metadata, ReflectionFile $file, ReflectionClass $reflectionClass, $defaultInstance)
at line 789
static
stringToBoolean($v)
at line 794
static
invertBoolean($v)
at line 799
static
getClassMetadataClassConstant($metadataOrmetadataClassName, $prefix, $suffix)
at line 827
static void|mixed
invokeClassMetadataMethod(ClassMetadata $metadata, string $method, ... ...$arguments)
Invoke class metadata instance method only if it exists.
at line 834
protected
parseParameters($output, $text, ClassMetadata $metadata, $parametersProperties)
at line 881
protected
getTargetEntityFromVariableDeclaration($variable, $file, $property, $associationTagName)
at line 943
static protected
setSpecialGenerator(mixed $type, ClassMetadata $metadata, array $mapping)
Call generator type-specific metadata methods.
Mostly for Doctrine ORM ClassMetadata.