|
@@ 1658-1660 (lines=3) @@
|
| 1655 |
|
$remoteClass = $candidates[$relationName]; |
| 1656 |
|
|
| 1657 |
|
// If dot notation is present, extract just the first part that contains the class. |
| 1658 |
|
if(($fieldPos = strpos($remoteClass, '.'))!==false) { |
| 1659 |
|
return substr($remoteClass, 0, $fieldPos); |
| 1660 |
|
} |
| 1661 |
|
|
| 1662 |
|
// Otherwise just return the class |
| 1663 |
|
return $remoteClass; |
|
@@ 3533-3535 (lines=3) @@
|
| 3530 |
|
$spec = $name; |
| 3531 |
|
|
| 3532 |
|
// Extract field name in case this is a method called on a field (e.g. "Date.Nice") |
| 3533 |
|
if(($fieldPos = strpos($name, '.')) !== false) { |
| 3534 |
|
$name = substr($name, 0, $fieldPos); |
| 3535 |
|
} |
| 3536 |
|
|
| 3537 |
|
if($this->hasDatabaseField($name)) { |
| 3538 |
|
$fields[] = $name; |