Passed
Push — dev_2x ( fb9ebe...5f9618 )
by Adrian
02:22
created

DetachEntities::revert()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
declare(strict_types=1);
3
4
namespace Sirius\Orm\Action;
5
6
class DetachEntities extends AttachEntities
7
{
8
    public function run()
9
    {
10
        /**
11
         * @todo store current attribute values
12
         */
13
    }
14
15
    public function onSuccess()
16
    {
17
        $this->relation->detachEntities($this->nativeEntity, $this->foreignEntity);
18
    }
19
}
20