Свойство | Тип | Описание | |
---|---|---|---|
$alsoLoadMethods | array | READ-ONLY: Array of fields to also load with a given method. | |
$associationsMappings | array | READ-ONLY | |
$attachmentDeclaredClass | string | null | If in an inheritance scenario the attachment field is on a super class, this is its name. | |
$attachmentField | string | Field that stores the attachments as a key->value array of file-names to attachment objects. | |
$customRepositoryClassName | string | (Optional). | |
$fieldMappings | array | Keys are field names and values are mapping definitions. The mapping definition array has the following values: - fieldName (string) The name of the field in the Document. - id (boolean, optional) Marks the field as the primary key of the document. Multiple fields of an document can have the id attribute, forming a composite key. | |
$hasAttachments | boolean | ||
$idGenerator | |||
$identifier | READ-ONLY: The field name of the document identifier. | ||
$inInheritanceHierachy | READ-ONLY: Is this entity in an inheritance hierachy? | ||
$indexed | boolean | Is this class indexed? If yes, then a findAll() query can be executed for this type. | |
$indexes | array | An array of indexed fields, accessible through a generic view shipped with Doctrine. | |
$isEmbeddedDocument | boolean | READ-ONLY: Whether this class describes the mapping of a embedded document. | |
$isMappedSuperclass | boolean | READ-ONLY: Whether this class describes the mapping of a mapped superclass. | |
$isReadOnly | boolean | This should be set to true for value objects, for example attachments. Replacing the reference with a new value object will trigger an update. | |
$isVersioned | boolean | CouchDB documents are always versioned, this flag determines if this version is exposed to the userland. | |
$jsonNames | array | An array of json result-key-names to field-names | |
$name | READ-ONLY: The name of the document class. | ||
$namespace | string | READ-ONLY: The namespace the document class is contained in. | |
$parentClasses | READ-ONLY: a list of all parent classes. | ||
$reflClass | ReflectionClas\ReflectionClass | The ReflectionClass instance of the mapped class. | |
$reflFields | array | The ReflectionProperty instances of the mapped class. | |
$rootDocumentName | READ-ONLY: The root document class name. | ||
$versionField | string | Version Field stores the CouchDB Revision |
Метод | Описание | |
---|---|---|
__construct ( string $documentName ) | Initializes a new ClassMetadata instance that will hold the object-document mapping metadata of the class with the given name. | |
__sleep ( ) : array | Determines which fields get serialized. | |
deriveChildMetadata ( |
Used to derive a class metadata of the current instance for a mapped child class. | |
getAssociationMappedByTargetField ( $assocName ) | {@inheritDoc} | |
getAssociationNames ( ) : array | A numerically indexed list of association names of this persistent class. | |
getAssociationTargetClass ( string $assocName ) : string | Returns the target class name of the given association. | |
getFieldMapping ( string $fieldName ) : array | Gets the mapping of a field. | |
getFieldNames ( ) : array | A numerically indexed list of field names of this persistent class. | |
getFieldValue ( object $document, string $field ) | Gets the specified field's value off the given document. | |
getIdentifier ( ) : string | Gets the mapped identifier field of this class. | |
getIdentifierFieldNames ( ) : array | Get identifier field names of this class.; | |
getIdentifierValue ( object $document ) : string | Gets the document identifier. | |
getIdentifierValues ( object $document ) : array | Get identifier values of this document. | |
getName ( ) : string | The name of this Document class. | |
getNamespace ( ) : string | The namespace this Document class belongs to. | |
getReflectionClass ( ) : ReflectionClas\ReflectionClass | Gets the ReflectionClass instance of the mapped class. | |
getReflectionProperties ( ) : array | Gets the ReflectionPropertys of the mapped class. | |
getReflectionProperty ( string $name ) : ReflectionPropert\ReflectionProperty | Gets a ReflectionProperty for a specific field of the mapped class. | |
getTypeOfField ( string $fieldName ) : Type | Gets the type of a field. | |
hasAssociation ( string $fieldName ) : boolean | Checks if the given field is a mapped association for this class. | |
hasField ( $fieldName ) : boolean | Checks whether the class has a (mapped) field with a certain name. | |
initializeReflection ( Doctrine\Common\Persistence\Mapping\ReflectionService $reflService ) : void | Initializes a new ClassMetadata instance that will hold the object-relational mapping metadata of the class with the given name. | |
isAssociationInverseSide ( $assocName ) | {@inheritDoc} | |
isCollectionValuedAssociation ( $name ) | ||
isIdentifier ( string $fieldName ) : boolean | Checks whether a field is part of the identifier/primary key field(s). | |
isInheritedAssociation ( $field ) | ||
isInheritedField ( $field ) | ||
isSingleValuedAssociation ( string $fieldName ) : boolean | Checks if the given field is a mapped single valued association for this class. | |
mapAttachments ( string $fieldName ) | Set the field that will contain attachments of this document. | |
mapEmbedded ( array $mapping ) | Map an embedded object | |
mapField ( array $mapping ) | Map a field. | |
mapManyToMany ( $mapping ) | ||
mapManyToOne ( $mapping ) | ||
markInheritanceRoot ( ) | ||
newInstance ( ) : object | Creates a new instance of the mapped class, without invoking the constructor. | |
setCustomRepositoryClass ( string $repositoryClassName ) | Registers a custom repository class for the document class. | |
setFieldValue ( object $document, string $field, mixed $value ) | Sets the specified field to the specified value on the given document. | |
setIdentifier ( string $identifier ) | INTERNAL: Sets the mapped identifier field of this class. | |
setIdentifierValue ( object $document, mixed $id ) | Sets the document identifier of a document. | |
setParentClasses ( $classes ) | ||
wakeupReflection ( $reflService ) | Restores some state that can not be serialized/unserialized. |
Метод | Описание | |
---|---|---|
validateAndCompleteAssociationMapping ( $mapping ) | ||
validateAndCompleteFieldMapping ( $mapping ) | ||
validateAndCompleteReferenceMapping ( $mapping ) |
Метод | Описание | |
---|---|---|
checkAndStoreIndexMapping ( $mapping ) | ||
storeAssociationMapping ( $mapping ) |
public __construct ( string $documentName ) | ||
$documentName | string | The name of the document class the new instance is used for. |
public deriveChildMetadata ( |
||
$child |
public getAssociationMappedByTargetField ( $assocName ) |
public getAssociationNames ( ) : array | ||
Результат | array |
public getAssociationTargetClass ( string $assocName ) : string | ||
$assocName | string | |
Результат | string |
public getFieldMapping ( string $fieldName ) : array | ||
$fieldName | string | The field name. |
Результат | array | The field mapping. |
public getFieldNames ( ) : array | ||
Результат | array |
public getFieldValue ( object $document, string $field ) | ||
$document | object | |
$field | string |
public getIdentifier ( ) : string | ||
Результат | string | $identifier |
public getIdentifierFieldNames ( ) : array | ||
Результат | array |
public getIdentifierValue ( object $document ) : string | ||
$document | object | |
Результат | string | $id |
public getIdentifierValues ( object $document ) : array | ||
$document | object | |
Результат | array |
public getNamespace ( ) : string | ||
Результат | string | $namespace The namespace name. |
public getReflectionClass ( ) : ReflectionClas\ReflectionClass | ||
Результат | ReflectionClas\ReflectionClass |
public getReflectionProperties ( ) : array | ||
Результат | array | An array of ReflectionProperty instances. |
public getReflectionProperty ( string $name ) : ReflectionPropert\ReflectionProperty | ||
$name | string | |
Результат | ReflectionPropert\ReflectionProperty |
public getTypeOfField ( string $fieldName ) : Type | ||
$fieldName | string | |
Результат | Type |
public hasAssociation ( string $fieldName ) : boolean | ||
$fieldName | string | |
Результат | boolean |
public initializeReflection ( Doctrine\Common\Persistence\Mapping\ReflectionService $reflService ) : void | ||
$reflService | Doctrine\Common\Persistence\Mapping\ReflectionService | The reflection service. |
Результат | void |
public isAssociationInverseSide ( $assocName ) |
public isIdentifier ( string $fieldName ) : boolean | ||
$fieldName | string | The field name |
Результат | boolean | TRUE if the field is part of the table identifier/primary key field(s), FALSE otherwise. |
public isSingleValuedAssociation ( string $fieldName ) : boolean | ||
$fieldName | string | |
Результат | boolean |
public mapAttachments ( string $fieldName ) | ||
$fieldName | string |
public mapEmbedded ( array $mapping ) | ||
$mapping | array |
public newInstance ( ) : object | ||
Результат | object |
public setCustomRepositoryClass ( string $repositoryClassName ) | ||
$repositoryClassName | string | The class name of the custom mapper. |
public setIdentifier ( string $identifier ) | ||
$identifier | string |
public setIdentifierValue ( object $document, mixed $id ) | ||
$document | object | |
$id | mixed |
protected validateAndCompleteAssociationMapping ( $mapping ) |
protected validateAndCompleteFieldMapping ( $mapping ) |
protected validateAndCompleteReferenceMapping ( $mapping ) |
public wakeupReflection ( $reflService ) |
public array $alsoLoadMethods | ||
Результат | array |
public array $associationsMappings | ||
Результат | array |
public string $attachmentField | ||
Результат | string |
public string $customRepositoryClassName | ||
Результат | string |
public array $fieldMappings | ||
Результат | array |
public $identifier |
public $inInheritanceHierachy |
public bool $indexed | ||
Результат | boolean |
public array $indexes | ||
Результат | array |
public bool $isEmbeddedDocument | ||
Результат | boolean |
public bool $isMappedSuperclass | ||
Результат | boolean |
public bool $isReadOnly | ||
Результат | boolean |
public bool $isVersioned | ||
Результат | boolean |
public array $jsonNames | ||
Результат | array |
public string $namespace | ||
Результат | string |
public ReflectionClass,ReflectionClas $reflClass | ||
Результат | ReflectionClas\ReflectionClass |
public array $reflFields | ||
Результат | array |
public $rootDocumentName |
public string $versionField | ||
Результат | string |