|
@@ 2131-2133 (lines=3) @@
|
| 2128 |
|
if($candidate) { |
| 2129 |
|
$relationName = null; |
| 2130 |
|
// Extract class and relation name from dot-notation |
| 2131 |
|
if(strpos($candidate, '.') !== false) { |
| 2132 |
|
list($candidate, $relationName) = explode('.', $candidate, 2); |
| 2133 |
|
} |
| 2134 |
|
|
| 2135 |
|
// If we've not already found the relation name from dot notation, we need to find a relation that points |
| 2136 |
|
// back to this class. As there's no dot-notation, there can only be one relation pointing to this class, |
|
@@ 2202-2204 (lines=3) @@
|
| 2199 |
|
$candidate = (isset($belongsManyMany[$component])) ? $belongsManyMany[$component] : null; |
| 2200 |
|
if($candidate) { |
| 2201 |
|
// Extract class and relation name from dot-notation |
| 2202 |
|
if(strpos($candidate, '.') !== false) { |
| 2203 |
|
list($candidate, $relationName) = explode('.', $candidate, 2); |
| 2204 |
|
} |
| 2205 |
|
|
| 2206 |
|
$childField = $candidate . "ID"; |
| 2207 |
|
|