@@ 54-64 (lines=11) @@ | ||
51 | $requestTargetSource = $this->request->getTargetSource(); |
|
52 | ||
53 | $resourceType = null; |
|
54 | if ($requestTargetSource == TargetSource::ENTITY_SET) { |
|
55 | $resourceType = $this->request->getTargetResourceType(); |
|
56 | } else { |
|
57 | $this->assert( |
|
58 | $requestTargetSource == TargetSource::PROPERTY, |
|
59 | '$requestTargetSource == TargetSource::PROPERTY' |
|
60 | ); |
|
61 | $resourceProperty = $this->request->getProjectedProperty(); |
|
62 | //$this->assert($resourceProperty->getKind() == ResourcePropertyKind::RESOURCE_REFERENCE, '$resourceProperty->getKind() == ResourcePropertyKind::RESOURCE_REFERENCE'); |
|
63 | $resourceType = $resourceProperty->getResourceType(); |
|
64 | } |
|
65 | ||
66 | $needPop = $this->pushSegmentForRoot(); |
|
67 | $entry = $this->_writeEntryElement( |
|
@@ 91-102 (lines=12) @@ | ||
88 | $title = null; |
|
89 | if ($requestTargetSource == TargetSource::ENTITY_SET) { |
|
90 | $title = $this->request->getContainerName(); |
|
91 | } else { |
|
92 | $this->assert( |
|
93 | $requestTargetSource == TargetSource::PROPERTY, |
|
94 | '$requestTargetSource == TargetSource::PROPERTY' |
|
95 | ); |
|
96 | $resourceProperty = $this->request->getProjectedProperty(); |
|
97 | $this->assert( |
|
98 | $resourceProperty->getKind() == ResourcePropertyKind::RESOURCESET_REFERENCE, |
|
99 | '$resourceProperty->getKind() == ResourcePropertyKind::RESOURCESET_REFERENCE' |
|
100 | ); |
|
101 | $title = $resourceProperty->getName(); |
|
102 | } |
|
103 | ||
104 | $relativeUri = $this->request->getIdentifier(); |
|
105 | $feed = new ODataFeed(); |