@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | { |
127 | 127 | $metadata->setPrimaryTable( |
128 | 128 | [ |
129 | - 'name' => 'company_person', |
|
129 | + 'name' => 'company_person', |
|
130 | 130 | ] |
131 | 131 | ); |
132 | 132 | |
@@ -191,18 +191,18 @@ discard block |
||
191 | 191 | 'entities' => [ |
192 | 192 | [ |
193 | 193 | 'fields' => [ |
194 | - [ |
|
194 | + [ |
|
195 | 195 | 'name' => 'id', |
196 | 196 | 'column' => 'id', |
197 | - ], |
|
198 | - [ |
|
197 | + ], |
|
198 | + [ |
|
199 | 199 | 'name' => 'city', |
200 | 200 | 'column' => 'city', |
201 | - ], |
|
202 | - [ |
|
201 | + ], |
|
202 | + [ |
|
203 | 203 | 'name' => 'country', |
204 | 204 | 'column' => 'country', |
205 | - ], |
|
205 | + ], |
|
206 | 206 | ], |
207 | 207 | 'entityClass' => CmsAddress::class, |
208 | 208 | ], |
@@ -15,8 +15,8 @@ |
||
15 | 15 | { |
16 | 16 | $metadata->mapField( |
17 | 17 | [ |
18 | - 'fieldName' => 'creditCardNumber', |
|
19 | - 'type' => 'string', |
|
18 | + 'fieldName' => 'creditCardNumber', |
|
19 | + 'type' => 'string', |
|
20 | 20 | ] |
21 | 21 | ); |
22 | 22 | } |
@@ -23,16 +23,16 @@ |
||
23 | 23 | { |
24 | 24 | $metadata->mapField( |
25 | 25 | [ |
26 | - 'id' => true, |
|
27 | - 'fieldName' => 'id', |
|
28 | - 'type' => 'integer', |
|
29 | - 'columnName' => 'id', |
|
26 | + 'id' => true, |
|
27 | + 'fieldName' => 'id', |
|
28 | + 'type' => 'integer', |
|
29 | + 'columnName' => 'id', |
|
30 | 30 | ] |
31 | 31 | ); |
32 | 32 | $metadata->mapField( |
33 | 33 | [ |
34 | - 'fieldName' => 'value', |
|
35 | - 'type' => 'float', |
|
34 | + 'fieldName' => 'value', |
|
35 | + 'type' => 'float', |
|
36 | 36 | ] |
37 | 37 | ); |
38 | 38 | $metadata->isMappedSuperclass = true; |
@@ -15,8 +15,8 @@ |
||
15 | 15 | { |
16 | 16 | $metadata->mapField( |
17 | 17 | [ |
18 | - 'fieldName' => 'serialNumber', |
|
19 | - 'type' => 'string', |
|
18 | + 'fieldName' => 'serialNumber', |
|
19 | + 'type' => 'string', |
|
20 | 20 | ] |
21 | 21 | ); |
22 | 22 | } |
@@ -46,13 +46,13 @@ |
||
46 | 46 | { |
47 | 47 | $metadata->mapField( |
48 | 48 | [ |
49 | - 'id' => true, |
|
50 | - 'fieldName' => 'id', |
|
49 | + 'id' => true, |
|
50 | + 'fieldName' => 'id', |
|
51 | 51 | ] |
52 | 52 | ); |
53 | 53 | $metadata->mapField( |
54 | 54 | [ |
55 | - 'fieldName' => 'name', |
|
55 | + 'fieldName' => 'name', |
|
56 | 56 | ] |
57 | 57 | ); |
58 | 58 |
@@ -17,10 +17,10 @@ |
||
17 | 17 | { |
18 | 18 | $metadata->mapField( |
19 | 19 | [ |
20 | - 'id' => true, |
|
21 | - 'fieldName' => 'id', |
|
22 | - 'type' => 'integer', |
|
23 | - 'columnName' => 'id', |
|
20 | + 'id' => true, |
|
21 | + 'fieldName' => 'id', |
|
22 | + 'type' => 'integer', |
|
23 | + 'columnName' => 'id', |
|
24 | 24 | ] |
25 | 25 | ); |
26 | 26 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | $metadata->mapField( |
17 | 17 | [ |
18 | - 'fieldName' => 'name', |
|
18 | + 'fieldName' => 'name', |
|
19 | 19 | ] |
20 | 20 | ); |
21 | 21 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | * @Cache |
36 | 36 | * @OneToOne(targetEntity="TravelerProfile") |
37 | 37 | */ |
38 | - protected $profile; |
|
38 | + protected $profile; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @param string $name |
@@ -30,16 +30,16 @@ |
||
30 | 30 | */ |
31 | 31 | protected $state; |
32 | 32 | |
33 | - /** |
|
34 | - * @ManyToMany(targetEntity="Travel", mappedBy="visitedCities") |
|
35 | - */ |
|
33 | + /** |
|
34 | + * @ManyToMany(targetEntity="Travel", mappedBy="visitedCities") |
|
35 | + */ |
|
36 | 36 | public $travels; |
37 | 37 | |
38 | - /** |
|
39 | - * @Cache |
|
40 | - * @OrderBy({"name" = "ASC"}) |
|
41 | - * @OneToMany(targetEntity="Attraction", mappedBy="city") |
|
42 | - */ |
|
38 | + /** |
|
39 | + * @Cache |
|
40 | + * @OrderBy({"name" = "ASC"}) |
|
41 | + * @OneToMany(targetEntity="Attraction", mappedBy="city") |
|
42 | + */ |
|
43 | 43 | public $attractions; |
44 | 44 | |
45 | 45 | public function __construct($name, State $state = null) |
@@ -102,6 +102,6 @@ |
||
102 | 102 | |
103 | 103 | public static function loadMetadata(\Doctrine\ORM\Mapping\ClassMetadataInfo $metadata) |
104 | 104 | { |
105 | - include __DIR__ . '/../../ORM/Mapping/php/Doctrine.Tests.Models.Cache.City.php'; |
|
105 | + include __DIR__.'/../../ORM/Mapping/php/Doctrine.Tests.Models.Cache.City.php'; |
|
106 | 106 | } |
107 | 107 | } |