|
@@ 1652-1654 (lines=3) @@
|
| 1649 |
|
$remoteClass = $candidates[$relationName]; |
| 1650 |
|
|
| 1651 |
|
// If dot notation is present, extract just the first part that contains the class. |
| 1652 |
|
if (($fieldPos = strpos($remoteClass, '.'))!==false) { |
| 1653 |
|
return substr($remoteClass, 0, $fieldPos); |
| 1654 |
|
} |
| 1655 |
|
|
| 1656 |
|
// Otherwise just return the class |
| 1657 |
|
return $remoteClass; |
|
@@ 3227-3229 (lines=3) @@
|
| 3224 |
|
$spec = $name; |
| 3225 |
|
|
| 3226 |
|
// Extract field name in case this is a method called on a field (e.g. "Date.Nice") |
| 3227 |
|
if (($fieldPos = strpos($name, '.')) !== false) { |
| 3228 |
|
$name = substr($name, 0, $fieldPos); |
| 3229 |
|
} |
| 3230 |
|
|
| 3231 |
|
if ($schema->fieldSpec($this, $name)) { |
| 3232 |
|
$fields[] = $name; |