@@ -172,6 +172,9 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | |
| 174 | 174 | |
| 175 | + /** |
|
| 176 | + * @param string $name |
|
| 177 | + */ |
|
| 175 | 178 | private function addIndexedFields($name, &$spec) { |
| 176 | 179 | // in the case of a relationship type will not be set |
| 177 | 180 | if(isset($spec['type'])) { |
@@ -209,6 +212,11 @@ discard block |
||
| 209 | 212 | } |
| 210 | 213 | |
| 211 | 214 | |
| 215 | + /** |
|
| 216 | + * @param string $name |
|
| 217 | + * @param boolean $storeMethodName |
|
| 218 | + * @param boolean $recurse |
|
| 219 | + */ |
|
| 212 | 220 | private function assignSpecForHasOne($name, $resultType, &$spec, $storeMethodName, $recurse) { |
| 213 | 221 | $resultTypeInstance = \Injector::inst()->create($resultType); |
| 214 | 222 | |
@@ -230,6 +238,11 @@ discard block |
||
| 230 | 238 | } |
| 231 | 239 | |
| 232 | 240 | |
| 241 | + /** |
|
| 242 | + * @param string $name |
|
| 243 | + * @param boolean $storeMethodName |
|
| 244 | + * @param boolean $recurse |
|
| 245 | + */ |
|
| 233 | 246 | private function assignSpecForManyRelationship($name, $resultType, &$spec, $storeMethodName, $recurse) { |
| 234 | 247 | $resultTypeInstance = \Injector::inst()->create($resultType); |
| 235 | 248 | $resultTypeMapping = array(); |
@@ -253,6 +266,9 @@ discard block |
||
| 253 | 266 | } |
| 254 | 267 | |
| 255 | 268 | |
| 269 | + /** |
|
| 270 | + * @param string $name |
|
| 271 | + */ |
|
| 256 | 272 | private function assignSpecForStandardFieldType($name, $class, &$spec) { |
| 257 | 273 | if(($pos = strpos($class, '('))) { |
| 258 | 274 | // Valid in the case of Varchar(255) |