| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function setLoadedProperties(array $properties): Model |
||
| 26 | { |
||
| 27 | $this->__properties['all'] = $properties; |
||
| 28 | $this->__properties['self'] = $properties; |
||
| 29 | foreach ($properties as $key => $value) { |
||
| 30 | $this->__properties['type'][$key] = $this->connection->getTableManager()->getTable($this->table)->getColumn($key)->getComment(); |
||
| 31 | } |
||
| 32 | $this->__meta['id'] = $properties['id']; |
||
| 33 | return $this; |
||
| 34 | } |
||
| 46 | } |