We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 1304-1310 (lines=7) @@ | ||
| 1301 | } |
|
| 1302 | ||
| 1303 | // face un fel de merge intre ce ii dai si ce e in CRUD |
|
| 1304 | public function syncRelations($entity) |
|
| 1305 | { |
|
| 1306 | foreach ($this->relations as $field => $relation) { |
|
| 1307 | if ($relation['pivot']) $this->add($entity, ['name' => $field, 'type' => 'multiselect', 'value' => [], 'values' => $this->relations[$field]['values']]); |
|
| 1308 | else $this->sync($entity, $field, ['type' => 'select', 'values' => $this->relations[$field]['values']]); |
|
| 1309 | } |
|
| 1310 | } |
|
| 1311 | ||
| 1312 | ||
| 1313 | ||
| @@ 564-570 (lines=7) @@ | ||
| 561 | return $values->get()->lists($field, $model->getKeyName())->toArray(); |
|
| 562 | } |
|
| 563 | ||
| 564 | private function syncRelations($entity) |
|
| 565 | { |
|
| 566 | foreach ($this->relations as $field => $relation) { |
|
| 567 | if ($relation['pivot']) $this->add($entity, ['name' => $field, 'type' => 'multiselect', 'value' => [], 'values' => $this->relations[$field]['values']]); |
|
| 568 | else $this->sync($entity, $field, ['type' => 'select', 'values' => $this->relations[$field]['values']]); |
|
| 569 | } |
|
| 570 | } |
|
| 571 | ||
| 572 | private function makeLabel($value) // DONE |
|
| 573 | { |
|