|
@@ 1616-1618 (lines=3) @@
|
| 1613 |
|
$remoteClass = $candidates[$relationName]; |
| 1614 |
|
|
| 1615 |
|
// If dot notation is present, extract just the first part that contains the class. |
| 1616 |
|
if (($fieldPos = strpos($remoteClass, '.'))!==false) { |
| 1617 |
|
return substr($remoteClass, 0, $fieldPos); |
| 1618 |
|
} |
| 1619 |
|
|
| 1620 |
|
// Otherwise just return the class |
| 1621 |
|
return $remoteClass; |
|
@@ 3156-3158 (lines=3) @@
|
| 3153 |
|
$spec = $name; |
| 3154 |
|
|
| 3155 |
|
// Extract field name in case this is a method called on a field (e.g. "Date.Nice") |
| 3156 |
|
if (($fieldPos = strpos($name, '.')) !== false) { |
| 3157 |
|
$name = substr($name, 0, $fieldPos); |
| 3158 |
|
} |
| 3159 |
|
|
| 3160 |
|
if ($schema->fieldSpec($this, $name)) { |
| 3161 |
|
$fields[] = $name; |