|
@@ -128,7 +128,7 @@ discard block |
|
|
block discarded – undo |
|
128
|
128
|
private function implement(Map $objectModel) |
|
129
|
129
|
{ |
|
130
|
130
|
$meta = App::make('metadata'); |
|
131
|
|
- $namespace = $meta->getContainerNamespace().'.'; |
|
|
131
|
+ $namespace = $meta->getContainerNamespace() . '.'; |
|
132
|
132
|
|
|
133
|
133
|
$entities = $objectModel->getEntities(); |
|
134
|
134
|
foreach ($entities as $entity) { |
|
@@ -141,12 +141,12 @@ discard block |
|
|
block discarded – undo |
|
141
|
141
|
$entity->setOdataResourceType($entityType); |
|
142
|
142
|
$this->implementProperties($entity); |
|
143
|
143
|
$meta->addResourceSet($pluralName, $entityType); |
|
144
|
|
- $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace.$entityName]; |
|
|
144
|
+ $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace . $entityName]; |
|
145
|
145
|
} |
|
146
|
146
|
$metaCount = count($meta->oDataEntityMap); |
|
147
|
147
|
$entityCount = count($entities); |
|
148
|
148
|
$expected = 2 * $entityCount; |
|
149
|
|
- assert($metaCount == $expected, 'Expected ' . $expected . ' items, actually got '.$metaCount); |
|
|
149
|
+ assert($metaCount == $expected, 'Expected ' . $expected . ' items, actually got ' . $metaCount); |
|
150
|
150
|
|
|
151
|
151
|
if (0 === count($objectModel->getAssociations())) { |
|
152
|
152
|
return; |
Please login to merge, or discard this patch.