@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Doctrine\Tests\ORM\Functional; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\Proxy\ProxyFactory; |
6 | -use Doctrine\ORM\Proxy\ProxyClassGenerator; |
|
7 | 6 | use Doctrine\Tests\Models\ECommerce\ECommerceProduct; |
8 | 7 | use Doctrine\Tests\Models\ECommerce\ECommerceShipping; |
9 | 8 | use Doctrine\Tests\Models\Company\CompanyAuction; |
@@ -329,6 +329,9 @@ |
||
329 | 329 | $this->callbacks = $callbacks; |
330 | 330 | } |
331 | 331 | |
332 | + /** |
|
333 | + * @param string $eventName |
|
334 | + */ |
|
332 | 335 | private function dispatch($eventName, $args) |
333 | 336 | { |
334 | 337 | if (isset($this->callbacks[$eventName])) { |
@@ -173,6 +173,9 @@ discard block |
||
173 | 173 | $this->assertFalse($em->getFilters()->isEnabled("foo_filter")); |
174 | 174 | } |
175 | 175 | |
176 | + /** |
|
177 | + * @param \Doctrine\ORM\EntityManager $em |
|
178 | + */ |
|
176 | 179 | protected function configureFilters($em) |
177 | 180 | { |
178 | 181 | // Add filters to the configuration of the EM |
@@ -878,6 +881,9 @@ discard block |
||
878 | 881 | $this->assertEquals(2, count($manager->managedContracts->slice(0, 10))); |
879 | 882 | } |
880 | 883 | |
884 | + /** |
|
885 | + * @param string $name |
|
886 | + */ |
|
881 | 887 | private function usePersonNameFilter($name) |
882 | 888 | { |
883 | 889 | // Enable the filter |
@@ -4,21 +4,16 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\DBAL\Types\Type as DBALType; |
6 | 6 | use Doctrine\ORM\Query\Filter\SQLFilter; |
7 | -use Doctrine\ORM\Mapping\ClassMetaData; |
|
8 | 7 | use Doctrine\Common\Cache\ArrayCache; |
9 | - |
|
10 | 8 | use Doctrine\ORM\Mapping\ClassMetadataInfo; |
11 | - |
|
12 | 9 | use Doctrine\Tests\Models\CMS\CmsUser; |
13 | 10 | use Doctrine\Tests\Models\CMS\CmsAddress; |
14 | 11 | use Doctrine\Tests\Models\CMS\CmsGroup; |
15 | 12 | use Doctrine\Tests\Models\CMS\CmsArticle; |
16 | - |
|
17 | 13 | use Doctrine\Tests\Models\Company\CompanyPerson; |
18 | 14 | use Doctrine\Tests\Models\Company\CompanyManager; |
19 | 15 | use Doctrine\Tests\Models\Company\CompanyOrganization; |
20 | 16 | use Doctrine\Tests\Models\Company\CompanyAuction; |
21 | - |
|
22 | 17 | use Doctrine\Tests\Models\Company\CompanyFlexContract; |
23 | 18 | use Doctrine\Tests\Models\Company\CompanyFlexUltraContract; |
24 | 19 |
@@ -2,12 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\ORM\Functional; |
4 | 4 | |
5 | -use Doctrine\Tests\Models\ECommerce\ECommerceCart, |
|
6 | - Doctrine\Tests\Models\ECommerce\ECommerceFeature, |
|
7 | - Doctrine\Tests\Models\ECommerce\ECommerceCustomer, |
|
8 | - Doctrine\Tests\Models\ECommerce\ECommerceProduct; |
|
9 | - |
|
10 | -use Doctrine\ORM\Mapping\AssociationMapping; |
|
5 | +use Doctrine\Tests\Models\ECommerce\ECommerceCart; |
|
6 | +use Doctrine\Tests\Models\ECommerce\ECommerceFeature; |
|
7 | +use Doctrine\Tests\Models\ECommerce\ECommerceCustomer; |
|
8 | +use Doctrine\Tests\Models\ECommerce\ECommerceProduct; |
|
11 | 9 | |
12 | 10 | /** |
13 | 11 | * Tests capabilities of the persister. |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
128 | - * @param field_type $fooTitle |
|
128 | + * @param string $fooTitle |
|
129 | 129 | */ |
130 | 130 | public function setFooTitle($fooTitle) |
131 | 131 | { |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | } |
204 | 204 | |
205 | 205 | /** |
206 | - * @param field_type $barTitle |
|
206 | + * @param string $barTitle |
|
207 | 207 | */ |
208 | 208 | public function setBarTitle($barTitle) |
209 | 209 | { |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | /** |
293 | 293 | * Retrieve the orderNr property |
294 | 294 | * |
295 | - * @return int|null |
|
295 | + * @return integer |
|
296 | 296 | */ |
297 | 297 | public function getOrderNr() |
298 | 298 | { |
@@ -203,7 +203,7 @@ |
||
203 | 203 | } |
204 | 204 | |
205 | 205 | /** |
206 | - * @param Product $product |
|
206 | + * @param DDC1163Product $product |
|
207 | 207 | */ |
208 | 208 | public function setProduct(DDC1163Product $product) |
209 | 209 | { |
@@ -1,8 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
3 | 3 | |
4 | -use DateTime, Doctrine\DBAL\Types\Type; |
|
5 | - |
|
6 | 4 | class DDC1193Test extends \Doctrine\Tests\OrmFunctionalTestCase |
7 | 5 | { |
8 | 6 | protected function setUp() |
@@ -90,6 +90,9 @@ |
||
90 | 90 | return $this->name; |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param string $name |
|
95 | + */ |
|
93 | 96 | public function setName($name) |
94 | 97 | { |
95 | 98 | $this->name = $name; |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use Doctrine\Common\Collections\ArrayCollection; |
|
6 | -use Doctrine\Tests\Models\CMS\CmsEmployee; |
|
7 | - |
|
8 | 5 | /** |
9 | 6 | * @group DDC-1250 |
10 | 7 | */ |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use Doctrine\Common\Collections\ArrayCollection; |
|
6 | -use Doctrine\Tests\Models\CMS\CmsEmployee; |
|
7 | - |
|
8 | 5 | /** |
9 | 6 | * @group DDC-1250 |
10 | 7 | */ |