|
@@ 1662-1664 (lines=3) @@
|
| 1659 |
|
$remoteClass = $candidates[$relationName]; |
| 1660 |
|
|
| 1661 |
|
// If dot notation is present, extract just the first part that contains the class. |
| 1662 |
|
if(($fieldPos = strpos($remoteClass, '.'))!==false) { |
| 1663 |
|
return substr($remoteClass, 0, $fieldPos); |
| 1664 |
|
} |
| 1665 |
|
|
| 1666 |
|
// Otherwise just return the class |
| 1667 |
|
return $remoteClass; |
|
@@ 3569-3571 (lines=3) @@
|
| 3566 |
|
$spec = $name; |
| 3567 |
|
|
| 3568 |
|
// Extract field name in case this is a method called on a field (e.g. "Date.Nice") |
| 3569 |
|
if(($fieldPos = strpos($name, '.')) !== false) { |
| 3570 |
|
$name = substr($name, 0, $fieldPos); |
| 3571 |
|
} |
| 3572 |
|
|
| 3573 |
|
if($this->hasDatabaseField($name)) { |
| 3574 |
|
$fields[] = $name; |