PHP Class Doctrine\ODM\MongoDB\Proxy\ProxyFactory

Since: 1.0
Author: Jonathan H. Wage ([email protected])
Author: Roman Borschel ([email protected])
Author: Giorgio Sironi ([email protected])
显示文件 Open project: doctrine/mongodb-odm Class Usage Examples

Public Methods

Method Description
__construct ( DocumentManager $documentManager, string $proxyDir, string $proxyNamespace, integer $autoGenerate = AbstractProxyFactory::AUTOGENERATE_NEVER ) Initializes a new instance of the ProxyFactory class that is connected to the given DocumentManager.
createProxyDefinition ( $className ) {@inheritDoc}
skipClass ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class ) {@inheritDoc}

Private Methods

Method Description
createCloner ( Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata, DocumentPersister $documentPersister, ReflectionPropert\ReflectionProperty $reflectionId ) : Closure Generates a closure capable of finalizing a cloned proxy
createInitializer ( Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata, DocumentPersister $documentPersister, ReflectionPropert\ReflectionProperty $reflectionId ) : Closure Generates a closure capable of initializing a proxy

Method Details

__construct() public method

Initializes a new instance of the ProxyFactory class that is connected to the given DocumentManager.
public __construct ( DocumentManager $documentManager, string $proxyDir, string $proxyNamespace, integer $autoGenerate = AbstractProxyFactory::AUTOGENERATE_NEVER )
$documentManager Doctrine\ODM\MongoDB\DocumentManager The DocumentManager the new factory works for.
$proxyDir string The directory to use for the proxy classes. It must exist.
$proxyNamespace string The namespace to use for the proxy classes.
$autoGenerate integer Whether to automatically generate proxy classes.

createProxyDefinition() public method

{@inheritDoc}
public createProxyDefinition ( $className )

skipClass() public method

{@inheritDoc}
public skipClass ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class )
$class Doctrine\Common\Persistence\Mapping\ClassMetadata