@@ 179-183 (lines=5) @@ | ||
176 | return false; |
|
177 | } |
|
178 | $roles = [$associationEnds[0]->getRole(), $associationEnds[1]->getRole()]; |
|
179 | if (!in_array($associationSets[$associationName][0]->getRole(), $roles)) { |
|
180 | $msg = "association Set role " . $associationSets[$associationName][0]->getRole() |
|
181 | . "lacks a matching property in the attached association"; |
|
182 | return false; |
|
183 | } |
|
184 | if (!in_array($associationSets[$associationName][1]->getRole(), $roles)) { |
|
185 | $msg = "association Set role " . $associationSets[$associationName][1]->getRole() |
|
186 | . "lacks a matching property in the attached association"; |
|
@@ 184-188 (lines=5) @@ | ||
181 | . "lacks a matching property in the attached association"; |
|
182 | return false; |
|
183 | } |
|
184 | if (!in_array($associationSets[$associationName][1]->getRole(), $roles)) { |
|
185 | $msg = "association Set role " . $associationSets[$associationName][1]->getRole() |
|
186 | . "lacks a matching property in the attached association"; |
|
187 | return false; |
|
188 | } |
|
189 | foreach ($navigationProperties[$associationName] as $navProp) { |
|
190 | if (!in_array($navProp->getToRole(), $roles)) { |
|
191 | $msg = "Navigation Property Role " . $navProp->getToRole() |