Documentation

ClassMetadataFactory

Contract for a Doctrine persistence layer ClassMetadata class to implement.

Tags
link
www.doctrine-project.org
since
2.1
author

Benjamin Eberlei kontakt@beberlei.de

author

Jonathan Wage jonwage@gmail.com

Table of Contents

getAllMetadata()  : array<string|int, ClassMetadata>
Forces the factory to load the metadata of all classes known to the underlying mapping driver.
getMetadataFor()  : ClassMetadata
Gets the class metadata descriptor for a class.
hasMetadataFor()  : bool
Checks whether the factory has the metadata for a class loaded already.
isTransient()  : bool
Returns whether the class with the specified name should have its metadata loaded.
setMetadataFor()  : mixed
Sets the metadata descriptor for a specific class.

Methods

getAllMetadata()

Forces the factory to load the metadata of all classes known to the underlying mapping driver.

public getAllMetadata() : array<string|int, ClassMetadata>
Return values
array<string|int, ClassMetadata> —

The ClassMetadata instances of all mapped classes.

hasMetadataFor()

Checks whether the factory has the metadata for a class loaded already.

public hasMetadataFor(string $className) : bool
Parameters
$className : string
Return values
bool —

TRUE if the metadata of the class in question is already loaded, FALSE otherwise.

isTransient()

Returns whether the class with the specified name should have its metadata loaded.

public isTransient(string $className) : bool

This is only the case if it is either mapped directly or as a MappedSuperclass.

Parameters
$className : string
Return values
bool —

setMetadataFor()

Sets the metadata descriptor for a specific class.

public setMetadataFor(string $className, ClassMetadata $class) : mixed
Parameters
$className : string
$class : ClassMetadata
Return values
mixed —

Search results