@@ -173,6 +173,9 @@ discard block |
||
173 | 173 | $this->assertFalse($em->getFilters()->isEnabled("foo_filter")); |
174 | 174 | } |
175 | 175 | |
176 | + /** |
|
177 | + * @param \Shitty\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 Shitty\DBAL\Types\Type as DBALType; |
6 | 6 | use Shitty\ORM\Query\Filter\SQLFilter; |
7 | -use Shitty\ORM\Mapping\ClassMetaData; |
|
8 | 7 | use Shitty\Common\Cache\ArrayCache; |
9 | - |
|
10 | 8 | use Shitty\ORM\Mapping\ClassMetadataInfo; |
11 | - |
|
12 | 9 | use Shitty\Tests\Models\CMS\CmsUser; |
13 | 10 | use Shitty\Tests\Models\CMS\CmsAddress; |
14 | 11 | use Shitty\Tests\Models\CMS\CmsGroup; |
15 | 12 | use Shitty\Tests\Models\CMS\CmsArticle; |
16 | - |
|
17 | 13 | use Shitty\Tests\Models\Company\CompanyPerson; |
18 | 14 | use Shitty\Tests\Models\Company\CompanyManager; |
19 | 15 | use Shitty\Tests\Models\Company\CompanyOrganization; |
20 | 16 | use Shitty\Tests\Models\Company\CompanyAuction; |
21 | - |
|
22 | 17 | use Shitty\Tests\Models\Company\CompanyFlexContract; |
23 | 18 | use Shitty\Tests\Models\Company\CompanyFlexUltraContract; |
24 | 19 |
@@ -2,12 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Shitty\Tests\ORM\Functional; |
4 | 4 | |
5 | -use Shitty\Tests\Models\ECommerce\ECommerceCart, |
|
6 | - Shitty\Tests\Models\ECommerce\ECommerceFeature, |
|
7 | - Shitty\Tests\Models\ECommerce\ECommerceCustomer, |
|
8 | - Shitty\Tests\Models\ECommerce\ECommerceProduct; |
|
9 | - |
|
10 | -use Shitty\ORM\Mapping\AssociationMapping; |
|
5 | +use Shitty\Tests\Models\ECommerce\ECommerceCart; |
|
6 | +use Shitty\Tests\Models\ECommerce\ECommerceFeature; |
|
7 | +use Shitty\Tests\Models\ECommerce\ECommerceCustomer; |
|
8 | +use Shitty\Tests\Models\ECommerce\ECommerceProduct; |
|
11 | 9 | |
12 | 10 | /** |
13 | 11 | * Tests capabilities of the persister. |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Shitty\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use Shitty\Common\Collections\ArrayCollection; |
|
6 | - |
|
7 | 5 | /** |
8 | 6 | * @group DDC-1050 |
9 | 7 | */ |
@@ -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 | { |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Shitty\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use Shitty\Common\Collections\ArrayCollection; |
|
6 | - |
|
7 | 5 | /** |
8 | 6 | * @group DDC-1113 |
9 | 7 | * @group DDC-1306 |
@@ -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 Shitty\Tests\ORM\Functional\Ticket; |
3 | 3 | |
4 | -use DateTime, Shitty\DBAL\Types\Type; |
|
5 | - |
|
6 | 4 | class DDC1193Test extends \Shitty\Tests\OrmFunctionalTestCase |
7 | 5 | { |
8 | 6 | protected function setUp() |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Shitty\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use Shitty\Common\Collections\ArrayCollection; |
|
6 | - |
|
7 | 5 | class DDC1209Test extends \Shitty\Tests\OrmFunctionalTestCase |
8 | 6 | { |
9 | 7 | protected function setUp() |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Shitty\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use Shitty\Common\Collections\ArrayCollection; |
|
6 | -use Shitty\Tests\Models\CMS\CmsEmployee; |
|
7 | - |
|
8 | 5 | /** |
9 | 6 | * @group DDC-1225 |
10 | 7 | */ |