@@ -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 | } |
@@ -111,11 +111,11 @@ discard block |
||
111 | 111 | { |
112 | 112 | $metadata->mapField( |
113 | 113 | [ |
114 | - 'id' => true, |
|
115 | - 'fieldName' => 'id', |
|
116 | - 'type' => 'integer', |
|
117 | - 'columnName' => 'user_id', |
|
118 | - 'length' => 150, |
|
114 | + 'id' => true, |
|
115 | + 'fieldName' => 'id', |
|
116 | + 'type' => 'integer', |
|
117 | + 'columnName' => 'user_id', |
|
118 | + 'length' => 150, |
|
119 | 119 | ] |
120 | 120 | ); |
121 | 121 | $metadata->mapField( |
@@ -131,20 +131,20 @@ discard block |
||
131 | 131 | |
132 | 132 | $metadata->mapManyToOne( |
133 | 133 | [ |
134 | - 'fieldName' => 'address', |
|
135 | - 'targetEntity' => 'DDC964Address', |
|
136 | - 'cascade' => ['persist','merge'], |
|
137 | - 'joinColumn' => ['name'=>'address_id', 'referencedColumnMame'=>'id'], |
|
134 | + 'fieldName' => 'address', |
|
135 | + 'targetEntity' => 'DDC964Address', |
|
136 | + 'cascade' => ['persist','merge'], |
|
137 | + 'joinColumn' => ['name'=>'address_id', 'referencedColumnMame'=>'id'], |
|
138 | 138 | ] |
139 | 139 | ); |
140 | 140 | |
141 | 141 | $metadata->mapManyToMany( |
142 | 142 | [ |
143 | - 'fieldName' => 'groups', |
|
144 | - 'targetEntity' => 'DDC964Group', |
|
145 | - 'inversedBy' => 'users', |
|
146 | - 'cascade' => ['persist','merge','detach'], |
|
147 | - 'joinTable' => [ |
|
143 | + 'fieldName' => 'groups', |
|
144 | + 'targetEntity' => 'DDC964Group', |
|
145 | + 'inversedBy' => 'users', |
|
146 | + 'cascade' => ['persist','merge','detach'], |
|
147 | + 'joinTable' => [ |
|
148 | 148 | 'name' => 'ddc964_users_groups', |
149 | 149 | 'joinColumns' => [ |
150 | 150 | [ |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | 'referencedColumnName'=>'id', |
159 | 159 | ] |
160 | 160 | ] |
161 | - ] |
|
161 | + ] |
|
162 | 162 | ] |
163 | 163 | ); |
164 | 164 |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | [ |
134 | 134 | 'fieldName' => 'address', |
135 | 135 | 'targetEntity' => 'DDC964Address', |
136 | - 'cascade' => ['persist','merge'], |
|
136 | + 'cascade' => ['persist', 'merge'], |
|
137 | 137 | 'joinColumn' => ['name'=>'address_id', 'referencedColumnMame'=>'id'], |
138 | 138 | ] |
139 | 139 | ); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | 'fieldName' => 'groups', |
144 | 144 | 'targetEntity' => 'DDC964Group', |
145 | 145 | 'inversedBy' => 'users', |
146 | - 'cascade' => ['persist','merge','detach'], |
|
146 | + 'cascade' => ['persist', 'merge', 'detach'], |
|
147 | 147 | 'joinTable' => [ |
148 | 148 | 'name' => 'ddc964_users_groups', |
149 | 149 | 'joinColumns' => [ |