@@ 55-60 (lines=6) @@ | ||
52 | { |
|
53 | $NewEntity = new TEntityTypeType(); |
|
54 | $NewEntity->setName($name); |
|
55 | if (null != $summary || null != $longDescription) { |
|
56 | $documentation = new TDocumentationType(); |
|
57 | $documentation->setSummary($summary); |
|
58 | $documentation->setLongDescription($longDescription); |
|
59 | $NewEntity->setDocumentation($documentation); |
|
60 | } |
|
61 | ||
62 | $entitySet = new EntitySetAnonymousType(); |
|
63 | $entitySet->setName(Str::plural($NewEntity->getName(), 2)); |
|
@@ 131-136 (lines=6) @@ | ||
128 | $NewProperty->setType($type); |
|
129 | $NewProperty->setStoreGeneratedPattern($storeGeneratedPattern); |
|
130 | $NewProperty->setNullable($nullable); |
|
131 | if (null != $summary || null != $longDescription) { |
|
132 | $documentation = new TDocumentationType(); |
|
133 | $documentation->setSummary($summary); |
|
134 | $documentation->setLongDescription($longDescription); |
|
135 | $NewProperty->addToDocumentation($documentation); |
|
136 | } |
|
137 | if (null != $defaultValue) { |
|
138 | $NewProperty->setDefaultValue($defaultValue); |
|
139 | } |