@@ 468-474 (lines=7) @@ | ||
465 | public function isStructureOK(&$msg = null) |
|
466 | { |
|
467 | $pArray = []; |
|
468 | foreach ($this->getProperty() as $prop) { |
|
469 | if (in_array($prop->getName(), $pArray)) { |
|
470 | $msg = "Property Names, and Navigation Property Must Be Unique " . __CLASS__; |
|
471 | return false; |
|
472 | } |
|
473 | $pArray[] = $prop->getName(); |
|
474 | } |
|
475 | foreach ($this->getNavigationProperty() as $prop) { |
|
476 | if (in_array($prop->getName(), $pArray)) { |
|
477 | $msg = "Property Names, and Navigation Property Must Be Unique " . __CLASS__; |
|
@@ 475-481 (lines=7) @@ | ||
472 | } |
|
473 | $pArray[] = $prop->getName(); |
|
474 | } |
|
475 | foreach ($this->getNavigationProperty() as $prop) { |
|
476 | if (in_array($prop->getName(), $pArray)) { |
|
477 | $msg = "Property Names, and Navigation Property Must Be Unique " . __CLASS__; |
|
478 | return false; |
|
479 | } |
|
480 | $pArray[] = $prop->getName(); |
|
481 | } |
|
482 | if (in_array($this->getName(), $prop)) { |
|
483 | $msg = "entity types can not contain a property with the same name " . __CLASS__; |
|
484 | return false; |