|
@@ -144,7 +144,7 @@ discard block |
|
|
block discarded – undo |
|
144
|
144
|
die($this->getNamespace()); |
|
145
|
145
|
return false; |
|
146
|
146
|
}*/ |
|
147
|
|
- $eSetType = str_replace($this->getNamespace() . ".", "", $eSetType); |
|
|
147
|
+ $eSetType = str_replace($this->getNamespace().".", "", $eSetType); |
|
148
|
148
|
if (!in_array($eSetType, $entityTypeNames)) { |
|
149
|
149
|
$msg = "entitySet Types should have a matching type name in entity Types"; |
|
150
|
150
|
return false; |
|
@@ -153,7 +153,7 @@ discard block |
|
|
block discarded – undo |
|
153
|
153
|
|
|
154
|
154
|
// Check Associations to assocationSets |
|
155
|
155
|
if (count($assocationSets) != count($associationNames)) { |
|
156
|
|
- $msg = "we have " . count($assocationSets) . "assocation sets and " . count($associationNames) . " Assocations, they should be the same"; |
|
|
156
|
+ $msg = "we have ".count($assocationSets)."assocation sets and ".count($associationNames)." Assocations, they should be the same"; |
|
157
|
157
|
} |
|
158
|
158
|
if (count($associationNames) * 2 < $navigationProperties) { |
|
159
|
159
|
$msg = "we have two many navigation propertys. should have no more then double the number of assocations."; |
|
@@ -161,20 +161,20 @@ discard block |
|
|
block discarded – undo |
|
161
|
161
|
|
|
162
|
162
|
foreach ($associationNames as $assocationName => $assocationEnds) { |
|
163
|
163
|
if (!array_key_exists($assocationName, $assocationSets)) { |
|
164
|
|
- $msg = "assocation " . $assocationName . " exists without matching assocationSet"; |
|
|
164
|
+ $msg = "assocation ".$assocationName." exists without matching assocationSet"; |
|
165
|
165
|
return false; |
|
166
|
166
|
} |
|
167
|
167
|
|
|
168
|
168
|
if (!array_key_exists($assocationName, $navigationProperties)) { |
|
169
|
|
- $msg = "assocation " . $assocationName . " exists without matching Natvigation Property"; |
|
|
169
|
+ $msg = "assocation ".$assocationName." exists without matching Natvigation Property"; |
|
170
|
170
|
return false; |
|
171
|
171
|
} |
|
172
|
172
|
if (!in_array($assocationSets[$assocationName][0]->getName, [$assocationEnds[0]->getName, $assocationEnds[1]->getName])) { |
|
173
|
|
- $msg = "assocation Set role " . $assocationSets[$assocationName][0]->getName . "lacks a matching property in the attached assocation"; |
|
|
173
|
+ $msg = "assocation Set role ".$assocationSets[$assocationName][0]->getName."lacks a matching property in the attached assocation"; |
|
174
|
174
|
return false; |
|
175
|
175
|
} |
|
176
|
176
|
if (!in_array($assocationSets[$assocationName][1]->getName, [$assocationEnds[0]->getName, $assocationEnds[1]->getName])) { |
|
177
|
|
- $msg = "assocation Set role " . $assocationSets[$assocationName][0]->getName . "lacks a matching property in the attached assocation"; |
|
|
177
|
+ $msg = "assocation Set role ".$assocationSets[$assocationName][0]->getName."lacks a matching property in the attached assocation"; |
|
178
|
178
|
return false; |
|
179
|
179
|
} |
|
180
|
180
|
} |