|
@@ 1679-1681 (lines=3) @@
|
| 1676 |
|
$remoteClass = $candidates[$relationName]; |
| 1677 |
|
|
| 1678 |
|
// If dot notation is present, extract just the first part that contains the class. |
| 1679 |
|
if(($fieldPos = strpos($remoteClass, '.'))!==false) { |
| 1680 |
|
return substr($remoteClass, 0, $fieldPos); |
| 1681 |
|
} |
| 1682 |
|
|
| 1683 |
|
// Otherwise just return the class |
| 1684 |
|
return $remoteClass; |
|
@@ 3532-3534 (lines=3) @@
|
| 3529 |
|
$spec = $name; |
| 3530 |
|
|
| 3531 |
|
// Extract field name in case this is a method called on a field (e.g. "Date.Nice") |
| 3532 |
|
if(($fieldPos = strpos($name, '.')) !== false) { |
| 3533 |
|
$name = substr($name, 0, $fieldPos); |
| 3534 |
|
} |
| 3535 |
|
|
| 3536 |
|
if($this->hasDatabaseField($name)) { |
| 3537 |
|
$fields[] = $name; |