interface ProxyFactory (View source)

Constants

AUTOGENERATE_NEVER

Never autogenerate a proxy and rely that it was generated by some process before deployment.

AUTOGENERATE_ALWAYS

Always generates a new proxy in every request.

This is only sane during development.

AUTOGENERATE_FILE_NOT_EXISTS

Autogenerate the proxy class when the proxy file does not exist.

This strategy causes a file exists call whenever any proxy is used the first time in a request.

AUTOGENERATE_EVAL

Generate the proxy classes using eval().

This strategy is only sane for development, and even then it gives me the creeps a little.

Methods

generateProxyClasses(array $classes)

No description

getProxy(ClassMetadata $metadata, array $identifier)

Gets a reference proxy instance for the entity of the given type and identified by the given identifier.

Details

generateProxyClasses(array $classes)

Parameters

array $classes

getProxy(ClassMetadata $metadata, array $identifier)

Gets a reference proxy instance for the entity of the given type and identified by the given identifier.

Parameters

ClassMetadata $metadata
array $identifier