@@ 110-118 (lines=9) @@ | ||
107 | * @param string $entityClassName |
|
108 | * @return string |
|
109 | */ |
|
110 | protected function getProxyNamespace($entityClassName) |
|
111 | { |
|
112 | if (isset($this->proxyNamespacesCache[$entityClassName]) == false) { |
|
113 | $this->proxyNamespacesCache[$entityClassName] = |
|
114 | 'ReadOnlyProxies\\' . substr($entityClassName, 0, strrpos($entityClassName, '\\')); |
|
115 | } |
|
116 | ||
117 | return $this->proxyNamespacesCache[$entityClassName]; |
|
118 | } |
|
119 | ||
120 | /** |
|
121 | * @param string $entityClassName |
|
@@ 124-132 (lines=9) @@ | ||
121 | * @param string $entityClassName |
|
122 | * @return string |
|
123 | */ |
|
124 | protected function getProxyClassName($entityClassName) |
|
125 | { |
|
126 | if (isset($this->proxyClassNamesCache[$entityClassName]) === false) { |
|
127 | $this->proxyClassNamesCache[$entityClassName] = |
|
128 | substr($entityClassName, strrpos($entityClassName, '\\') + 1); |
|
129 | } |
|
130 | ||
131 | return $this->proxyClassNamesCache[$entityClassName]; |
|
132 | } |
|
133 | ||
134 | /** |
|
135 | * As Doctrine\ORM\EntityManager::newHydrator() call new FooHydrator($this), we can't set parameters to Hydrator. |