@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | * @param object|string $entityOrClass An entity object, entity class name or entity proxy class name |
| 268 | 268 | * @param bool $throwException Whether to throw exception in case the entity is not manageable |
| 269 | 269 | * |
| 270 | - * @return ClassMetadata|null |
|
| 270 | + * @return \Doctrine\Common\Persistence\Mapping\ClassMetadata|null |
|
| 271 | 271 | * |
| 272 | 272 | * @throws Exception\NotManageableEntityException if the EntityManager was not found and $throwException is TRUE |
| 273 | 273 | */ |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | * @param string $entityClass The real class name of an entity |
| 286 | 286 | * @param bool $throwException Whether to throw exception in case the entity is not manageable |
| 287 | 287 | * |
| 288 | - * @return ClassMetadata|null |
|
| 288 | + * @return \Doctrine\Common\Persistence\Mapping\ClassMetadata|null |
|
| 289 | 289 | * |
| 290 | 290 | * @throws Exception\NotManageableEntityException if the EntityManager was not found and $throwException is TRUE |
| 291 | 291 | */ |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | * @param object|string $entityOrClass An entity object, entity class name or entity proxy class name |
| 324 | 324 | * @param bool $throwException Whether to throw exception in case the entity is not manageable |
| 325 | 325 | * |
| 326 | - * @return EntityManager|null |
|
| 326 | + * @return ObjectManager|null |
|
| 327 | 327 | * |
| 328 | 328 | * @throws Exception\NotManageableEntityException if the EntityManager was not found and $throwException is TRUE |
| 329 | 329 | */ |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | * @param string $entityClass The real class name of an entity |
| 342 | 342 | * @param bool $throwException Whether to throw exception in case the entity is not manageable |
| 343 | 343 | * |
| 344 | - * @return EntityManager|null |
|
| 344 | + * @return ObjectManager|null |
|
| 345 | 345 | * |
| 346 | 346 | * @throws Exception\NotManageableEntityException if the EntityManager was not found and $throwException is TRUE |
| 347 | 347 | */ |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | /** |
| 474 | 474 | * @param string $entityClass The real class name of an entity |
| 475 | 475 | * |
| 476 | - * @return EntityManager|null |
|
| 476 | + * @return ObjectManager|null |
|
| 477 | 477 | */ |
| 478 | 478 | private function getManagerForClass($entityClass) |
| 479 | 479 | { |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | /** |
| 184 | 184 | * Return true if given class supports |
| 185 | 185 | * |
| 186 | - * @param $className |
|
| 186 | + * @param string $className |
|
| 187 | 187 | * |
| 188 | 188 | * @return bool |
| 189 | 189 | */ |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | /** |
| 198 | 198 | * Return true if fields mapping exists for the given class name |
| 199 | 199 | * |
| 200 | - * @param $className |
|
| 200 | + * @param string $className |
|
| 201 | 201 | * |
| 202 | 202 | * @return bool |
| 203 | 203 | */ |
@@ -221,7 +221,7 @@ |
||
| 221 | 221 | /** |
| 222 | 222 | * Creates instance of Translator |
| 223 | 223 | * |
| 224 | - * @param $loader |
|
| 224 | + * @param \PHPUnit_Framework_MockObject_MockObject $loader |
|
| 225 | 225 | * @param array $options |
| 226 | 226 | * @return Translator |
| 227 | 227 | */ |
@@ -4,11 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\Cache\Cache; |
| 6 | 6 | use Doctrine\Common\Cache\ClearableCache; |
| 7 | - |
|
| 8 | 7 | use Symfony\Component\Translation\Loader\LoaderInterface; |
| 9 | 8 | use Symfony\Bundle\FrameworkBundle\Translation\Translator as BaseTranslator; |
| 10 | - |
|
| 11 | -use Oro\Bundle\EntityBundle\Tools\SafeDatabaseChecker; |
|
| 12 | 9 | use Oro\Bundle\TranslationBundle\Entity\Translation; |
| 13 | 10 | |
| 14 | 11 | class Translator extends BaseTranslator |