@@ 60-63 (lines=4) @@ | ||
57 | { |
|
58 | $NewEntity = new TEntityTypeType(); |
|
59 | $NewEntity->setName($name); |
|
60 | if (null != $summary && null != $longDescription) { |
|
61 | $documentation = $this->generateDocumentation($summary, $longDescription); |
|
62 | $NewEntity->setDocumentation($documentation); |
|
63 | } |
|
64 | ||
65 | $entitySet = new EntitySetAnonymousType(); |
|
66 | $entitySet->setName(Str::plural($NewEntity->getName())); |
|
@@ 83-86 (lines=4) @@ | ||
80 | $NewEntity = new TComplexTypeType(); |
|
81 | $NewEntity->setName($name); |
|
82 | $NewEntity->setTypeAccess($accessType); |
|
83 | if (null != $summary && null != $longDescription) { |
|
84 | $documentation = $this->generateDocumentation($summary, $longDescription); |
|
85 | $NewEntity->setDocumentation($documentation); |
|
86 | } |
|
87 | assert($NewEntity->isOK($this->lastError), $this->lastError); |
|
88 | $this->V3Edmx->getDataServiceType()->getSchema()[0]->addToComplexType($NewEntity); |
|
89 |