@@ 1640-1642 (lines=3) @@ | ||
1637 | $remoteClass = $candidates[$relationName]; |
|
1638 | ||
1639 | // If dot notation is present, extract just the first part that contains the class. |
|
1640 | if (($fieldPos = strpos($remoteClass, '.'))!==false) { |
|
1641 | return substr($remoteClass, 0, $fieldPos); |
|
1642 | } |
|
1643 | ||
1644 | // Otherwise just return the class |
|
1645 | return $remoteClass; |
|
@@ 3213-3215 (lines=3) @@ | ||
3210 | $spec = $name; |
|
3211 | ||
3212 | // Extract field name in case this is a method called on a field (e.g. "Date.Nice") |
|
3213 | if (($fieldPos = strpos($name, '.')) !== false) { |
|
3214 | $name = substr($name, 0, $fieldPos); |
|
3215 | } |
|
3216 | ||
3217 | if ($schema->fieldSpec($this, $name)) { |
|
3218 | $fields[] = $name; |