@@ 54-59 (lines=6) @@ | ||
51 | $this->startEdmxTransaction(); |
|
52 | $NewEntity = new TEntityTypeType(); |
|
53 | $NewEntity->setName($name); |
|
54 | if (null != $summary || null != $longDescription) { |
|
55 | $documentation = new TDocumentationType(); |
|
56 | $documentation->setSummary($summary); |
|
57 | $documentation->setLongDescription($longDescription); |
|
58 | $NewEntity->setDocumentation($documentation); |
|
59 | } |
|
60 | ||
61 | $entitySet = new EntitySetAnonymousType(); |
|
62 | $entitySet->setName(Str::plural($NewEntity->getName(), 2)); |
|
@@ 143-148 (lines=6) @@ | ||
140 | $NewProperty->setType($type); |
|
141 | $NewProperty->setStoreGeneratedPattern($storeGeneratedPattern); |
|
142 | $NewProperty->setNullable($nullable); |
|
143 | if (null != $summary || null != $longDescription) { |
|
144 | $documentation = new TDocumentationType(); |
|
145 | $documentation->setSummary($summary); |
|
146 | $documentation->setLongDescription($longDescription); |
|
147 | $NewProperty->addToDocumentation($documentation); |
|
148 | } |
|
149 | if (null != $defaultValue) { |
|
150 | $NewProperty->setDefaultValue($defaultValue); |
|
151 | } |