| Methods |
public
|
__construct(
EntityManagerInterface $em,
string $proxyDir,
string $proxyNs,
bool|self::AUTOGENERATE_* $autoGenerate = self::AUTOGENERATE_NEVER,
)
Initializes a new instance of the <tt>ProxyFactory</tt> class that is
connected to the given <tt>EntityManager</tt>.
Initializes a new instance of the ProxyFactory class that is
connected to the given EntityManager.
Parameters
| $em |
The EntityManager the new factory works for.
|
| $proxyDir |
The directory to use for the proxy classes. It must exist.
|
| $proxyNs |
The namespace to use for the proxy classes.
|
| $autoGenerate |
The strategy for automatically generating proxy classes.
|
Overrides
|
#
|
public
|
getProxy($className, array $identifier)
{@inheritDoc}
|
#
|
protected
|
skipClass(ClassMetadata $metadata)
{@inheritDoc}
|
#
|
protected
|
createProxyDefinition($className)
{@inheritDoc}
|
#
|
private
|
createInitializer(ClassMetadata $classMetadata, EntityPersister $entityPersister): Closure
Creates a closure capable of initializing a proxy
Creates a closure capable of initializing a proxy
Throws
|
#
|
private
|
createLazyInitializer(
ClassMetadata $classMetadata,
EntityPersister $entityPersister,
): Closure(InternalProxy, InternalProxy): void
Creates a closure capable of initializing a proxy
Creates a closure capable of initializing a proxy
Throws
|
#
|
private
|
createCloner(ClassMetadata $classMetadata, EntityPersister $entityPersister): Closure
Creates a closure capable of finalizing state a cloned proxy
Creates a closure capable of finalizing state a cloned proxy
Throws
|
#
|
private
|
generateUseLazyGhostTrait(ClassMetadata $class): string
|
#
|
private
|
generateSkippedProperties(ClassMetadata $class): string
|
#
|
private
|
generateSerializeImpl(ClassMetadata $class): string
|
#
|