|
@@ 1667-1669 (lines=3) @@
|
| 1664 |
|
$remoteClass = $candidates[$relationName]; |
| 1665 |
|
|
| 1666 |
|
// If dot notation is present, extract just the first part that contains the class. |
| 1667 |
|
if(($fieldPos = strpos($remoteClass, '.'))!==false) { |
| 1668 |
|
return substr($remoteClass, 0, $fieldPos); |
| 1669 |
|
} |
| 1670 |
|
|
| 1671 |
|
// Otherwise just return the class |
| 1672 |
|
return $remoteClass; |
|
@@ 3537-3539 (lines=3) @@
|
| 3534 |
|
$spec = $name; |
| 3535 |
|
|
| 3536 |
|
// Extract field name in case this is a method called on a field (e.g. "Date.Nice") |
| 3537 |
|
if(($fieldPos = strpos($name, '.')) !== false) { |
| 3538 |
|
$name = substr($name, 0, $fieldPos); |
| 3539 |
|
} |
| 3540 |
|
|
| 3541 |
|
if($this->hasDatabaseField($name)) { |
| 3542 |
|
$fields[] = $name; |