| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php namespace Mascame\Artificer\Model; |
||
| 17 | public function get() |
||
| 18 | { |
||
| 19 | if (!empty($this->relations)) { |
||
| 20 | return $this->relations; |
||
| 21 | } |
||
| 22 | |||
| 23 | $fields = ModelOption::get('fields'); |
||
| 24 | |||
| 25 | if (empty($fields)) { |
||
| 26 | return array(); |
||
| 27 | } |
||
| 28 | |||
| 29 | return $this->relations = $this->getFieldsWithRelations($fields); |
||
| 30 | } |
||
| 31 | |||
| 59 | } |