Свойство | Тип | Описание | |
---|---|---|---|
$classNames | array | ||
$entityManager | Doctrine\Common\Persistence\ObjectManager | ||
$reader | |||
$reflectionService | |||
$tableNameLengthLimit | integer |
Метод | Описание | |
---|---|---|
__construct ( ) | Initializes a new AnnotationDriver that uses the given AnnotationReader for reading docblock annotations. | |
getAllClassNames ( ) : array | Returns the names of all mapped (non-transient) classes known to this driver. | |
getRuntimeEvaluationsDefinition ( ) : array | Returns runtime evaluations for a previously matched pointcut | |
hasRuntimeEvaluationsDefinition ( ) : boolean | Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut | |
inferTableNameFromClassName ( string $className, integer $lengthLimit = null ) : string | Given a class name a table name is returned. That name should be reasonably unique. | |
injectReflectionService ( |
||
isTransient ( string $className ) : boolean | Returns whether the class with the specified name is transient. Only non-transient classes, that is entities and mapped superclasses, should have their metadata loaded. | |
loadMetadataForClass ( string $className, Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata ) : void | Loads the metadata for the specified class into the provided container. | |
matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean | Checks if the specified class has a property annotated with Id | |
reduceTargetClassNames ( |
This method is used to optimize the matching process. | |
setEntityManager ( Doctrine\Common\Persistence\ObjectManager $entityManager ) : void |
Метод | Описание | |
---|---|---|
addColumnToMappingArray ( Doctrine\ORM\Mapping\Column $columnAnnotation, array $mapping = [], string $fieldName = null ) : array | Parse the given Column into an array | |
buildJoinColumnsIfNeeded ( array $joinColumns, array $mapping, ReflectionProperty $property, integer $direction = self::MAPPING_REGULAR ) : array | Check if the referenced column name is set (and valid) and if not make sure it is initialized properly. | |
buildJoinTableColumnName ( string $className ) : string | Build a name for a column in a jointable. | |
evaluateEntityListenersAnnotation ( ReflectionClass $class, Doctrine\ORM\Mapping\ClassMetadata $metadata, array $classAnnotations ) : void | Evaluate the EntityListeners annotation and amend the metadata accordingly. | |
evaluateJoinColumnAnnotations ( ReflectionProperty $property ) : array | Check for and build JoinColummn/JoinColumns annotations. | |
evaluateJoinTableAnnotation ( Doctrine\ORM\Mapping\JoinTable $joinTableAnnotation, ReflectionProperty $property, string $className, array $mapping ) : array | Evaluate JoinTable annotations and fill missing bits as needed. | |
evaluateLifeCycleAnnotations ( ReflectionClass $class, Doctrine\ORM\Mapping\ClassMetadataInfo $metadata ) : void | Evaluate the lifecycle annotations and amend the metadata accordingly. | |
evaluateOverridesAnnotations ( array $classAnnotations, Doctrine\ORM\Mapping\ClassMetadataInfo $metadata ) : void | Evaluate the association overrides annotations and amend the metadata accordingly. | |
evaluatePropertyAnnotations ( Doctrine\ORM\Mapping\ClassMetadataInfo $metadata ) : void | Evaluate the property annotations and amend the metadata accordingly. | |
getClassSchema ( string $className ) : |
Fetch a class schema for the given class, if possible. | |
getMaxIdentifierLength ( ) : integer | Derive maximum identifier length from doctrine DBAL | |
getMethodCallbacks ( ReflectionMethod $method ) : array | Returns an array of callbacks for lifecycle annotations on the given method. | |
getUnproxiedClassName ( string $className ) : string | Returns the classname after stripping a potentially present Compiler::ORIGINAL_CLASSNAME_SUFFIX. | |
inferJoinTableNameFromClassAndPropertyName ( string $className, string $propertyName ) : string | Given a class and property name a table name is returned. That name should be reasonably unique. | |
isAggregateRoot ( string $className, string $propertySourceHint ) : boolean | Check for $className being an aggregate root. | |
isValueObject ( string $className, string $propertySourceHint ) : boolean | Check for $className being a value object. | |
joinColumnToArray ( Doctrine\ORM\Mapping\JoinColumn $joinColumnAnnotation, string $propertyName = null ) : array | Parse the given JoinColumn into an array | |
truncateIdentifier ( string $identifier, integer $lengthLimit = null, string $hashSource = null ) : string | Truncate an identifier if needed and append a hash to ensure uniqueness. |
Метод | Описание | |
---|---|---|
getFetchMode ( string $className, string $fetchMode ) : integer | Attempts to resolve the fetch mode. |
public __construct ( ) |
protected buildJoinColumnsIfNeeded ( array $joinColumns, array $mapping, ReflectionProperty $property, integer $direction = self::MAPPING_REGULAR ) : array | ||
$joinColumns | array | |
$mapping | array | |
$property | ReflectionProperty | |
$direction | integer | regular or inverse mapping (use is to be coded) |
Результат | array |
protected buildJoinTableColumnName ( string $className ) : string | ||
$className | string | |
Результат | string |
protected evaluateEntityListenersAnnotation ( ReflectionClass $class, Doctrine\ORM\Mapping\ClassMetadata $metadata, array $classAnnotations ) : void | ||
$class | ReflectionClass | |
$metadata | Doctrine\ORM\Mapping\ClassMetadata | |
$classAnnotations | array | |
Результат | void |
protected evaluateJoinColumnAnnotations ( ReflectionProperty $property ) : array | ||
$property | ReflectionProperty | |
Результат | array |
protected evaluateLifeCycleAnnotations ( ReflectionClass $class, Doctrine\ORM\Mapping\ClassMetadataInfo $metadata ) : void | ||
$class | ReflectionClass | |
$metadata | Doctrine\ORM\Mapping\ClassMetadataInfo | |
Результат | void |
protected evaluateOverridesAnnotations ( array $classAnnotations, Doctrine\ORM\Mapping\ClassMetadataInfo $metadata ) : void | ||
$classAnnotations | array | |
$metadata | Doctrine\ORM\Mapping\ClassMetadataInfo | |
Результат | void |
protected evaluatePropertyAnnotations ( Doctrine\ORM\Mapping\ClassMetadataInfo $metadata ) : void | ||
$metadata | Doctrine\ORM\Mapping\ClassMetadataInfo | |
Результат | void |
public getAllClassNames ( ) : array | ||
Результат | array |
protected getClassSchema ( string $className ) : |
||
$className | string | |
Результат |
protected getMaxIdentifierLength ( ) : integer | ||
Результат | integer |
protected getMethodCallbacks ( ReflectionMethod $method ) : array | ||
$method | ReflectionMethod | |
Результат | array |
public getRuntimeEvaluationsDefinition ( ) : array | ||
Результат | array | Runtime evaluations |
protected getUnproxiedClassName ( string $className ) : string | ||
$className | string | |
Результат | string |
public hasRuntimeEvaluationsDefinition ( ) : boolean | ||
Результат | boolean | TRUE if this filter has runtime evaluations |
public injectReflectionService ( |
||
$reflectionService | ||
Результат | void |
public isTransient ( string $className ) : boolean | ||
$className | string | |
Результат | boolean |
protected joinColumnToArray ( Doctrine\ORM\Mapping\JoinColumn $joinColumnAnnotation, string $propertyName = null ) : array | ||
$joinColumnAnnotation | Doctrine\ORM\Mapping\JoinColumn | |
$propertyName | string | |
Результат | array |
public loadMetadataForClass ( string $className, Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata ) : void | ||
$className | string | |
$metadata | Doctrine\Common\Persistence\Mapping\ClassMetadata | |
Результат | void |
public matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean | ||
$className | string | Name of the class to check against |
$methodName | string | Name of the method to check against |
$methodDeclaringClassName | string | Name of the class the method was originally declared in |
$pointcutQueryIdentifier | mixed | Some identifier for this query - must at least differ from a previous identifier. Used for circular reference detection. |
Результат | boolean | TRUE if the class has *no* Id properties |
public reduceTargetClassNames ( |
||
$classNameIndex | ||
Результат |
public setEntityManager ( Doctrine\Common\Persistence\ObjectManager $entityManager ) : void | ||
$entityManager | Doctrine\Common\Persistence\ObjectManager | |
Результат | void |
protected ObjectManager,Doctrine\Common\Persistence $entityManager | ||
Результат | Doctrine\Common\Persistence\ObjectManager |
protected AnnotationReader,Doctrine\Common\Annotations $reader | ||
Результат |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
Результат |