@@ -78,11 +78,17 @@ |
||
| 78 | 78 | */ |
| 79 | 79 | private $name; |
| 80 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $name |
|
| 83 | + */ |
|
| 81 | 84 | public function __construct($name) |
| 82 | 85 | { |
| 83 | 86 | $this->name = $name; |
| 84 | 87 | } |
| 85 | 88 | |
| 89 | + /** |
|
| 90 | + * @param string $name |
|
| 91 | + */ |
|
| 86 | 92 | public function setName($name) |
| 87 | 93 | { |
| 88 | 94 | $this->name = $name; |
@@ -240,7 +240,7 @@ |
||
| 240 | 240 | |
| 241 | 241 | /** |
| 242 | 242 | * |
| 243 | - * @return Phrase |
|
| 243 | + * @return Lemma |
|
| 244 | 244 | */ |
| 245 | 245 | public function getParent() { |
| 246 | 246 | return $this->parent; |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 4 | 4 | |
| 5 | -use Doctrine\ORM\Query; |
|
| 6 | - |
|
| 7 | 5 | /** |
| 8 | 6 | * Functional tests for the Single Table Inheritance mapping strategy. |
| 9 | 7 | * |
@@ -6,8 +6,6 @@ |
||
| 6 | 6 | use Doctrine\Tests\Models\Generic\DateTimeModel; |
| 7 | 7 | use Doctrine\Tests\Models\Generic\DecimalModel; |
| 8 | 8 | use Doctrine\Tests\Models\Generic\SerializationModel; |
| 9 | - |
|
| 10 | -use Doctrine\ORM\Mapping\AssociationMapping; |
|
| 11 | 9 | use Doctrine\DBAL\Types\Type as DBALType; |
| 12 | 10 | |
| 13 | 11 | class TypeTest extends \Doctrine\Tests\OrmFunctionalTestCase |
@@ -339,6 +339,9 @@ discard block |
||
| 339 | 339 | /** @Embedded(class = "DDC93Timestamps") */ |
| 340 | 340 | public $timestamps; |
| 341 | 341 | |
| 342 | + /** |
|
| 343 | + * @param string $name |
|
| 344 | + */ |
|
| 342 | 345 | public function __construct($name = null, DDC93Address $address = null) |
| 343 | 346 | { |
| 344 | 347 | $this->name = $name; |
@@ -403,6 +406,9 @@ discard block |
||
| 403 | 406 | */ |
| 404 | 407 | public $name; |
| 405 | 408 | |
| 409 | + /** |
|
| 410 | + * @param string $name |
|
| 411 | + */ |
|
| 406 | 412 | public function __construct($name = null) |
| 407 | 413 | { |
| 408 | 414 | $this->name = $name; |
@@ -431,6 +437,11 @@ discard block |
||
| 431 | 437 | /** @Embedded(class = "DDC93Country") */ |
| 432 | 438 | public $country; |
| 433 | 439 | |
| 440 | + /** |
|
| 441 | + * @param string $street |
|
| 442 | + * @param string $zip |
|
| 443 | + * @param string $city |
|
| 444 | + */ |
|
| 434 | 445 | public function __construct($street = null, $zip = null, $city = null, DDC93Country $country = null) |
| 435 | 446 | { |
| 436 | 447 | $this->street = $street; |
@@ -16,6 +16,9 @@ discard block |
||
| 16 | 16 | { |
| 17 | 17 | abstract protected function _loadDriver(); |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @param string $entityClassName |
|
| 21 | + */ |
|
| 19 | 22 | public function createClassMetadata($entityClassName) |
| 20 | 23 | { |
| 21 | 24 | $mappingDriver = $this->_loadDriver(); |
@@ -28,7 +31,6 @@ discard block |
||
| 28 | 31 | } |
| 29 | 32 | |
| 30 | 33 | /** |
| 31 | - * @param \Doctrine\ORM\EntityManager $entityClassName |
|
| 32 | 34 | * @return \Doctrine\ORM\Mapping\ClassMetadataFactory |
| 33 | 35 | */ |
| 34 | 36 | protected function createClassMetadataFactory(\Doctrine\ORM\EntityManager $em = null) |
@@ -117,6 +117,9 @@ |
||
| 117 | 117 | return $this->createAnnotationDriver(); |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | + /** |
|
| 121 | + * @param string $entityClassName |
|
| 122 | + */ |
|
| 120 | 123 | protected function _ensureIsLoaded($entityClassName) |
| 121 | 124 | { |
| 122 | 125 | new $entityClassName; |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Doctrine\Tests\ORM\Performance; |
| 4 | 4 | |
| 5 | -use Doctrine\Tests\Mocks\HydratorMockStatement, |
|
| 6 | - Doctrine\ORM\Query\ResultSetMapping, |
|
| 7 | - Doctrine\ORM\Query; |
|
| 5 | +use Doctrine\Tests\Mocks\HydratorMockStatement; |
|
| 6 | +use Doctrine\ORM\Query\ResultSetMapping; |
|
| 7 | +use Doctrine\ORM\Query; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Tests to prevent serious performance regressions. |
@@ -124,6 +124,9 @@ discard block |
||
| 124 | 124 | $this->assertEquals(503, $this->countQuery($em)); |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | + /** |
|
| 128 | + * @param string $label |
|
| 129 | + */ |
|
| 127 | 130 | private function queryEntity(EntityManagerInterface $em, $label) |
| 128 | 131 | { |
| 129 | 132 | $times = 100; |
@@ -155,6 +158,9 @@ discard block |
||
| 155 | 158 | printf("\n%s\n", str_repeat('-', 50)); |
| 156 | 159 | } |
| 157 | 160 | |
| 161 | + /** |
|
| 162 | + * @param string $label |
|
| 163 | + */ |
|
| 158 | 164 | public function findEntityOneToMany(EntityManagerInterface $em, $label) |
| 159 | 165 | { |
| 160 | 166 | $times = 50; |
@@ -214,6 +220,9 @@ discard block |
||
| 214 | 220 | printf("\n%s\n", str_repeat('-', 50)); |
| 215 | 221 | } |
| 216 | 222 | |
| 223 | + /** |
|
| 224 | + * @param string $label |
|
| 225 | + */ |
|
| 217 | 226 | private function findEntity(EntityManagerInterface $em, $label) |
| 218 | 227 | { |
| 219 | 228 | $times = 10; |
@@ -249,6 +258,9 @@ discard block |
||
| 249 | 258 | printf("\n%s\n", str_repeat('-', 50)); |
| 250 | 259 | } |
| 251 | 260 | |
| 261 | + /** |
|
| 262 | + * @param string $label |
|
| 263 | + */ |
|
| 252 | 264 | private function findAllEntity(EntityManagerInterface $em, $label) |
| 253 | 265 | { |
| 254 | 266 | $times = 100; |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Doctrine\ORM\Persisters\Entity\BasicEntityPersister; |
| 8 | 8 | use Doctrine\Tests\Models\CustomType\CustomTypeParent; |
| 9 | 9 | use Doctrine\Tests\Models\CustomType\CustomTypeChild; |
| 10 | -use Doctrine\Tests\Models\CustomType\CustomTypeFriend; |
|
| 11 | 10 | use Doctrine\Common\Collections\Expr\Comparison; |
| 12 | 11 | |
| 13 | 12 | class BasicEntityPersisterTypeValueSqlTest extends \Doctrine\Tests\OrmTestCase |