|
@@ 2070-2072 (lines=3) @@
|
| 2067 |
|
if($candidate) { |
| 2068 |
|
$relationName = null; |
| 2069 |
|
// Extract class and relation name from dot-notation |
| 2070 |
|
if(strpos($candidate, '.') !== false) { |
| 2071 |
|
list($candidate, $relationName) = explode('.', $candidate, 2); |
| 2072 |
|
} |
| 2073 |
|
|
| 2074 |
|
// If we've not already found the relation name from dot notation, we need to find a relation that points |
| 2075 |
|
// back to this class. As there's no dot-notation, there can only be one relation pointing to this class, |
|
@@ 2167-2169 (lines=3) @@
|
| 2164 |
|
$candidate = (isset($belongsManyMany[$component])) ? $belongsManyMany[$component] : null; |
| 2165 |
|
if($candidate) { |
| 2166 |
|
// Extract class and relation name from dot-notation |
| 2167 |
|
if(strpos($candidate, '.') !== false) { |
| 2168 |
|
list($candidate, $relationName) = explode('.', $candidate, 2); |
| 2169 |
|
} |
| 2170 |
|
|
| 2171 |
|
$childField = $candidate . "ID"; |
| 2172 |
|
|