PHP Class Doctrine\ODM\OrientDB\Proxy\ProxyFactory

Author: Tamás Millián ([email protected])
Inheritance: extends Doctrine\Common\Proxy\AbstractProxyFactory
Show file Open project: doctrine/orientdb-odm Class Usage Examples

Public Methods

Method Description
__construct ( Manager $manager, 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 )
skipClass ( Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata )

Private Methods

Method Description
createCloner ( Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata, Hydrator $hydrator, ReflectionProperty $reflectionId ) : Closure Generates a closure capable of finalizing a cloned proxy
createInitializer ( Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata, Hydrator $hydrator, 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 ( Manager $manager, string $proxyDir, string $proxyNamespace, integer $autoGenerate = AbstractProxyFactory::AUTOGENERATE_NEVER )
$manager Doctrine\ODM\OrientDB\Manager
$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

public createProxyDefinition ( $className )

skipClass() public method

public skipClass ( Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata )
$classMetadata Doctrine\Common\Persistence\Mapping\ClassMetadata