@@ -447,6 +447,9 @@ |
||
| 447 | 447 | |
| 448 | 448 | |
| 449 | 449 | |
| 450 | + /** |
|
| 451 | + * @param boolean $isDefault |
|
| 452 | + */ |
|
| 450 | 453 | protected function processSecondLevelCache($name, array $config, $isDefault) |
| 451 | 454 | { |
| 452 | 455 | if (!$config['enabled']) { |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * {@inheritdoc} |
| 109 | - * @param string|array $entity |
|
| 109 | + * @param string|array $entityName |
|
| 110 | 110 | * @return EntityManager |
| 111 | 111 | */ |
| 112 | 112 | public function clear($entityName = null) |
@@ -45,6 +45,9 @@ |
||
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param integer $defaultRenameMode |
|
| 50 | + */ |
|
| 48 | 51 | public function __construct(EntityManager $em, $defaultRenameMode = Doctrine\ORM\Query\ResultSetMappingBuilder::COLUMN_RENAMING_INCREMENT) |
| 49 | 52 | { |
| 50 | 53 | parent::__construct($em, $defaultRenameMode); |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Doctrine; |
| 14 | 14 | use Doctrine\ORM\EntityManager; |
| 15 | 15 | use Kdyby; |
| 16 | -use Nette; |
|
| 17 | 16 | |
| 18 | 17 | |
| 19 | 18 | |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use Doctrine\ORM\NativeQuery; |
| 18 | 18 | use Doctrine\ORM\Query; |
| 19 | 19 | use Kdyby; |
| 20 | -use Nette; |
|
| 21 | 20 | |
| 22 | 21 | |
| 23 | 22 | |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use Doctrine\DBAL\Statement; |
| 14 | 14 | use Kdyby; |
| 15 | -use Nette; |
|
| 16 | 15 | |
| 17 | 16 | |
| 18 | 17 | |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | namespace Kdyby\Doctrine\Tools; |
| 12 | 12 | |
| 13 | 13 | use Doctrine; |
| 14 | -use Doctrine\Common\Cache\CacheProvider; |
|
| 15 | 14 | use Doctrine\Common\Cache\ClearableCache; |
| 16 | 15 | use Kdyby; |
| 17 | 16 | use Nette; |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | /** |
| 280 | 280 | * This is just a paranoia, hopes no one actually serializes exceptions. |
| 281 | 281 | * |
| 282 | - * @return array |
|
| 282 | + * @return string[] |
|
| 283 | 283 | */ |
| 284 | 284 | public function __sleep() |
| 285 | 285 | { |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | |
| 321 | 321 | |
| 322 | 322 | /** |
| 323 | - * @return array |
|
| 323 | + * @return string[] |
|
| 324 | 324 | */ |
| 325 | 325 | public function __sleep() |
| 326 | 326 | { |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | |
| 362 | 362 | |
| 363 | 363 | /** |
| 364 | - * @return array |
|
| 364 | + * @return string[] |
|
| 365 | 365 | */ |
| 366 | 366 | public function __sleep() |
| 367 | 367 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * @internal |
| 65 | - * @param Doctrine\ORM\EntityManager $em |
|
| 65 | + * @param EntityManager $em |
|
| 66 | 66 | * @return $this |
| 67 | 67 | */ |
| 68 | 68 | public function bindEntityManager(Doctrine\ORM\EntityManager $em) |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | |
| 428 | 428 | |
| 429 | 429 | /** |
| 430 | - * @param \Exception|\Throwable $e |
|
| 430 | + * @param \PDOException $e |
|
| 431 | 431 | * @return string|NULL |
| 432 | 432 | */ |
| 433 | 433 | private static function resolveExceptionTable($e) |
@@ -88,6 +88,9 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | |
| 90 | 90 | |
| 91 | + /** |
|
| 92 | + * @param \Exception $exception |
|
| 93 | + */ |
|
| 91 | 94 | public function markExceptionOwner(Doctrine\ORM\EntityManager $em, $exception) |
| 92 | 95 | { |
| 93 | 96 | if ($this->em !== $em) { |
@@ -386,7 +389,6 @@ discard block |
||
| 386 | 389 | |
| 387 | 390 | /** |
| 388 | 391 | * @param \Exception|\Throwable $e |
| 389 | - * @param \Nette\DI\Container $dic |
|
| 390 | 392 | * @return array |
| 391 | 393 | */ |
| 392 | 394 | public function renderEntityManagerException($e) |
@@ -543,7 +545,7 @@ discard block |
||
| 543 | 545 | * @param array $types |
| 544 | 546 | * @param string $source |
| 545 | 547 | * |
| 546 | - * @return array |
|
| 548 | + * @return string |
|
| 547 | 549 | */ |
| 548 | 550 | protected function dumpQuery($query, $params, array $types = [], $source = NULL) |
| 549 | 551 | { |
@@ -748,11 +750,11 @@ discard block |
||
| 748 | 750 | |
| 749 | 751 | |
| 750 | 752 | /** |
| 751 | - * @param \Reflector|\Nette\Reflection\ClassType|\Nette\Reflection\Method $refl |
|
| 753 | + * @param \Reflector $refl |
|
| 752 | 754 | * @param \Exception|\Throwable $e |
| 753 | 755 | * @param int $startLine |
| 754 | 756 | * |
| 755 | - * @return int|string |
|
| 757 | + * @return string |
|
| 756 | 758 | */ |
| 757 | 759 | public static function calculateErrorLine(\Reflector $refl, $e, $startLine = NULL) |
| 758 | 760 | { |
@@ -784,7 +786,7 @@ discard block |
||
| 784 | 786 | |
| 785 | 787 | |
| 786 | 788 | /** |
| 787 | - * @param \Reflector|\Nette\Reflection\ClassType|\Nette\Reflection\Method $refl |
|
| 789 | + * @param \Reflector $refl |
|
| 788 | 790 | * @param int $symbolPos |
| 789 | 791 | * |
| 790 | 792 | * @return int |
@@ -803,8 +805,9 @@ discard block |
||
| 803 | 805 | |
| 804 | 806 | |
| 805 | 807 | /** |
| 806 | - * @param \Reflector|Nette\Reflection\ClassType|Nette\Reflection\Method $refl |
|
| 808 | + * @param \Reflector $refl |
|
| 807 | 809 | * @param $annotation |
| 810 | + * @return string |
|
| 808 | 811 | */ |
| 809 | 812 | private static function findRenamed(\Reflector $refl, $annotation) |
| 810 | 813 | { |
@@ -833,7 +836,7 @@ discard block |
||
| 833 | 836 | |
| 834 | 837 | |
| 835 | 838 | /** |
| 836 | - * @param \Nette\Reflection\ClassType|\Nette\Reflection\Method|\Reflector $refl |
|
| 839 | + * @param \Reflector $refl |
|
| 837 | 840 | * @param null $atPos |
| 838 | 841 | * |
| 839 | 842 | * @return string |