Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function calculateRoundTripRelations() |
||
26 | { |
||
27 | $modelNames = $this->getCandidateModels(); |
||
28 | |||
29 | foreach ($modelNames as $name) { |
||
30 | if (!$this->getRelationHolder()->hasClass($name)) { |
||
31 | $model = new $name(); |
||
32 | $this->getRelationHolder()->addModel($model); |
||
33 | } |
||
34 | } |
||
35 | |||
36 | return $this->getRelationHolder()->getRelations(); |
||
37 | } |
||
38 | } |
||
39 |