| Total Complexity | 5 | 
| Total Lines | 25 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 5 | trait SaveRelationsTrait | ||
| 6 | { | ||
| 7 | |||
| 8 | /** | ||
| 9 | * Populates the relations with input data. | ||
| 10 | */ | ||
| 11 | public function load($data, $formName = null) | ||
| 12 |     { | ||
| 13 | $loaded = parent::load($data, $formName); | ||
| 14 |         if ($loaded && $this->hasMethod('loadRelations')) { | ||
|  | |||
| 15 | $this->loadRelations($data); | ||
| 16 | } | ||
| 17 | return $loaded; | ||
| 18 | } | ||
| 19 | |||
| 20 | /** | ||
| 21 | * Starts transaction if [autoStartTransaction] has been defined | ||
| 22 | */ | ||
| 23 | public function isTransactional($operation) | ||
| 30 | } | ||
| 31 | |||
| 32 | } |