Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| TopicService | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
| deleteEntity | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
6 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace BO\Zmsdldb\Importer\MySQL\Entity; |
| 4 | |
| 5 | class TopicService extends Base |
| 6 | { |
| 7 | protected $fieldMapping = [ |
| 8 | 'id' => 'service_id', |
| 9 | 'topic_id' => 'topic_id', |
| 10 | ]; |
| 11 | |
| 12 | public function deleteEntity(): bool |
| 13 | { |
| 14 | try { |
| 15 | return $this->deleteWith( |
| 16 | array_combine( |
| 17 | ['topic_id', 'service_id'], |
| 18 | array_values($this->get('topic_id', 'id')) |
| 19 | ) |
| 20 | ); |
| 21 | } catch (\Exception $e) { |
| 22 | throw $e; |
| 23 | } |
| 24 | } |
| 25 | } |