ProxyFactory
public class ProxyFactory
Constructor Summary | |
---|---|
ProxyFactory(EntityManager em, string proxyDir, string proxyNs, boolean autoGenerate) Initializes a new instance of the ProxyFactory class that is connected to the given EntityManager. |
Method Summary | |
---|---|
void | generateProxyClasses(array classes, string toDir) Generates proxy classes for all given classes. |
object | getProxy(string className, mixed identifier) Gets a reference proxy instance for the entity of the given type and identified by the given identifier. |
public ProxyFactory(EntityManager em, string proxyDir, string proxyNs, boolean autoGenerate)
Initializes a new instance of the ProxyFactory class that is connected to the given EntityManager.
public void generateProxyClasses(array classes, string toDir)
Generates proxy classes for all given classes.
public object getProxy(string className, mixed identifier)
Gets a reference proxy instance for the entity of the given type and identified by the given identifier.
This factory is used to create proxy objects for entities at runtime.