@@ 64-68 (lines=5) @@ | ||
61 | $entitySet = new EntitySetAnonymousType(); |
|
62 | $entitySet->setName($this->pluralize(2, $NewEntity->getName())); |
|
63 | $namespace = $this->V3Edmx->getDataServices()[0]->getNamespace(); |
|
64 | if (0 == strlen(trim($namespace))) { |
|
65 | $entityTypeName = $NewEntity->getName(); |
|
66 | } else { |
|
67 | $entityTypeName = $namespace . "." . $NewEntity->getName(); |
|
68 | } |
|
69 | $entitySet->setEntityType($entityTypeName); |
|
70 | $entitySet->setGetterAccess($accessType); |
|
71 | ||
@@ 189-193 (lines=5) @@ | ||
186 | $name = $principalType . "_" . $principalProperty . "_" . $dependentType . "_" . $dependentProperty; |
|
187 | $as->setName($name); |
|
188 | $namespace = $this->V3Edmx->getDataServices()[0]->getNamespace(); |
|
189 | if (0 == strlen(trim($namespace))) { |
|
190 | $associationSetName = $association->getName(); |
|
191 | } else { |
|
192 | $associationSetName = $namespace . "." . $association->getName(); |
|
193 | } |
|
194 | $as->setAssociation($associationSetName); |
|
195 | $end1 = new EndAnonymousType(); |
|
196 | $end1->setRole($association->getEnd()[0]->getRole()); |