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