Property | Type | Description | |
---|---|---|---|
$associations | |||
$class | |||
$fields | |||
$identifierPropertyName | |||
$refClass | |||
$reflFields |
Method | Description | |
---|---|---|
__construct ( string $className ) | Instantiates a new Metadata for the given $className. | |
getAssociationMappedByTargetField ( string $assocName ) : string | ||
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. | |
getFieldNames ( ) : Array | A numerically indexed list of field names of this persistent class. | |
getIdentifier ( ) : array | Gets the mapped identifier field name. | |
getIdentifierFieldNames ( ) : array | ||
getIdentifierValues ( object $object ) : array | ||
getName ( ) : string | Get fully-qualified class name of this persistent class. | |
getReflectionClass ( ) : ReflectionClass | Gets the ReflectionClass instance for this mapped class. | |
getReflectionFields ( ) | ||
getReflectionProperties ( ) | ||
getRidPropertyName ( ) : string | PHP 5.3, no array dereferencing. | |
getTypeOfField ( string $fieldName ) : string | Returns a type name of this field. | |
hasAssociation ( string $fieldName ) : boolean | Checks if the given field is a mapped association for this class. | |
hasField ( string $property ) : boolean | Checks if the given field is a mapped property for this class. | |
isAssociationInverseSide ( string $assocName ) : boolean | ||
isCollectionValuedAssociation ( string $fieldName ) : boolean | Checks if the given field is a mapped collection valued association for this class. | |
isIdentifier ( string $fieldName ) : boolean | Checks if the given field name is a mapped identifier for this class. | |
isSingleValuedAssociation ( string $fieldName ) : boolean | Checks if the given field is a mapped single valued association for this class. | |
setAssociations ( array $associations ) | ||
setDocumentValue ( mixed $document, string $property, string $value ) | Given a $property and its $value, sets that property on the given $document by using a closures if available, otherwise fall back to reflection. | |
setFields ( array $fields ) | ||
setIdentifier ( $property ) |
Method | Description | |
---|---|---|
discoverReflectionFields ( ) | ||
getAssociation ( string $field ) : string | Returns the association mapped for the given $field. | |
getAssociations ( ) : Array | Returns all the possible associations mapped in the introspected class. | |
getField ( string $field ) : |
Returns the reflection property associated with the $field. | |
getFieldByProperty ( $property ) : |
Returns the reflection property associated with the $property. | |
getFields ( ) : Array | Returns all the fields of the introspected class. | |
isValuedAssociation ( string $field, array $associationTypes ) : boolean | Checks whether the $field is mapped as an association. |
public __construct ( string $className ) | ||
$className | string |
protected getAssociation ( string $field ) : string | ||
$field | string | |
return | string |
public getAssociationMappedByTargetField ( string $assocName ) : string | ||
$assocName | string | |
return | string |
public getAssociationNames ( ) : Array | ||
return | Array |
public getAssociationTargetClass ( string $assocName ) : string | ||
$assocName | string | |
return | string |
protected getAssociations ( ) : Array | ||
return | Array |
protected getFieldByProperty ( $property ) : |
||
return |
public getFieldNames ( ) : Array | ||
return | Array |
protected getFields ( ) : Array | ||
return | Array |
public getIdentifier ( ) : array | ||
return | array |
public getIdentifierValues ( object $object ) : array | ||
$object | object | |
return | array |
public getReflectionClass ( ) : ReflectionClass | ||
return | ReflectionClass |
public getTypeOfField ( string $fieldName ) : string | ||
$fieldName | string | |
return | string |
public hasAssociation ( string $fieldName ) : boolean | ||
$fieldName | string | |
return | boolean |
public isAssociationInverseSide ( string $assocName ) : boolean | ||
$assocName | string | |
return | boolean |
public isCollectionValuedAssociation ( string $fieldName ) : boolean | ||
$fieldName | string | |
return | boolean |
public isIdentifier ( string $fieldName ) : boolean | ||
$fieldName | string | |
return | boolean |
public isSingleValuedAssociation ( string $fieldName ) : boolean | ||
$fieldName | string | |
return | boolean |