class ProxyFactory extends AbstractProxyFactory (View source)

This factory is used to create proxy objects for documents at runtime.

Methods

__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.

skipClass(ClassMetadata $class)

{@inheritDoc}

createProxyDefinition($className)

{@inheritDoc}

Details

__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.

Parameters

DocumentManager $documentManager The DocumentManager the new factory works for.
string $proxyDir The directory to use for the proxy classes. It must exist.
string $proxyNamespace The namespace to use for the proxy classes.
integer $autoGenerate Whether to automatically generate proxy classes.

skipClass(ClassMetadata $class)

{@inheritDoc}

Parameters

ClassMetadata $class

createProxyDefinition($className)

{@inheritDoc}

Parameters

$className