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