@@ -117,8 +117,8 @@ discard block |
||
117 | 117 | public function persist(): EntityContract |
118 | 118 | { |
119 | 119 | $this->getRepository() |
120 | - ->em() |
|
121 | - ->persist($this); |
|
120 | + ->em() |
|
121 | + ->persist($this); |
|
122 | 122 | |
123 | 123 | return $this; |
124 | 124 | } |
@@ -126,8 +126,8 @@ discard block |
||
126 | 126 | public function flush(): EntityContract |
127 | 127 | { |
128 | 128 | $this->getRepository() |
129 | - ->em() |
|
130 | - ->flush($this); |
|
129 | + ->em() |
|
130 | + ->flush($this); |
|
131 | 131 | |
132 | 132 | return $this; |
133 | 133 | } |
@@ -135,8 +135,8 @@ discard block |
||
135 | 135 | public function remove(): EntityContract |
136 | 136 | { |
137 | 137 | $this->getRepository() |
138 | - ->em() |
|
139 | - ->remove($this); |
|
138 | + ->em() |
|
139 | + ->remove($this); |
|
140 | 140 | |
141 | 141 | return $this; |
142 | 142 | } |
@@ -62,8 +62,8 @@ |
||
62 | 62 | public function findRemoved($id, bool $abort = true): EntityContract |
63 | 63 | { |
64 | 64 | $entity = $this->findAllRemoved() |
65 | - ->andWhere('id', '=', $id) |
|
66 | - ->getOneResult(); |
|
65 | + ->andWhere('id', '=', $id) |
|
66 | + ->getOneResult(); |
|
67 | 67 | |
68 | 68 | enableSoftDeleteableFilter(); |
69 | 69 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $array = []; |
14 | 14 | |
15 | 15 | $classMetadata = $this->getRepository() |
16 | - ->getClassMetadata(); |
|
16 | + ->getClassMetadata(); |
|
17 | 17 | |
18 | 18 | foreach ($this->getFillable() as $key) { |
19 | 19 | $metaDataKey = $classMetadata->hasField($key) ? $classMetadata->getFieldMapping($key) : null; |