@@ -45,6 +45,7 @@ discard block |
||
45 | 45 | * @param string &$name |
46 | 46 | * @param boolean $storeMethodName |
47 | 47 | * @param boolean $recurse |
48 | + * @param string $name |
|
48 | 49 | */ |
49 | 50 | public static function assignSpecForRelationship(&$name, $resultType, &$spec, $storeMethodName, $recurse) { |
50 | 51 | $resultTypeInstance = \Injector::inst()->create($resultType); |
@@ -161,6 +162,9 @@ discard block |
||
161 | 162 | } |
162 | 163 | |
163 | 164 | |
165 | + /** |
|
166 | + * @param boolean $recurse |
|
167 | + */ |
|
164 | 168 | public static function storeRelationshipValue($instance, $field, &$fields, $config, $recurse) { |
165 | 169 | if(isset($config['properties']['__method'])) { |
166 | 170 | $methodName = $config['properties']['__method']; |
@@ -206,6 +210,9 @@ discard block |
||
206 | 210 | } |
207 | 211 | |
208 | 212 | |
213 | + /** |
|
214 | + * @param \DataObject $searchableClass |
|
215 | + */ |
|
209 | 216 | public static function findOrCreateSearchableField($className, $fieldName, $searchableField, $searchableClass) { |
210 | 217 | $filter = array('ClazzName' => $className, 'Name' => $fieldName); |
211 | 218 | $doSF = \SearchableField::get()->filter($filter)->first(); |