@@ -95,8 +95,8 @@ discard block |
||
95 | 95 | public function prePersist() |
96 | 96 | { |
97 | 97 | $this->getRepository() |
98 | - ->preSave($this) |
|
99 | - ->validate($this); |
|
98 | + ->preSave($this) |
|
99 | + ->validate($this); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | /** |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | public function postPersist() |
106 | 106 | { |
107 | 107 | $this->getRepository() |
108 | - ->postSave($this); |
|
108 | + ->postSave($this); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
@@ -114,8 +114,8 @@ discard block |
||
114 | 114 | public function preUpdate() |
115 | 115 | { |
116 | 116 | $this->getRepository() |
117 | - ->preSave($this) |
|
118 | - ->validate($this); |
|
117 | + ->preSave($this) |
|
118 | + ->validate($this); |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | public function postUpdate() |
125 | 125 | { |
126 | 126 | $this->getRepository() |
127 | - ->postSave($this); |
|
127 | + ->postSave($this); |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | public function preFlush() |
134 | 134 | { |
135 | 135 | $this->getRepository() |
136 | - ->preFlush($this); |
|
136 | + ->preFlush($this); |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | public function getRepository() |
@@ -7,10 +7,10 @@ |
||
7 | 7 | public function testStore() |
8 | 8 | { |
9 | 9 | $entity = $this->getRepositoryTest() |
10 | - ->getFlushedMockObject(); |
|
10 | + ->getFlushedMockObject(); |
|
11 | 11 | |
12 | 12 | $repository = $this->getService() |
13 | - ->getMainRepository(); |
|
13 | + ->getMainRepository(); |
|
14 | 14 | |
15 | 15 | $find = $repository->find($entity->getId()); |
16 | 16 |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | public function testFindAll() |
8 | 8 | { |
9 | 9 | $entity = $this->getRepositoryTest() |
10 | - ->getFlushedMockObject(); |
|
10 | + ->getFlushedMockObject(); |
|
11 | 11 | |
12 | 12 | $findAll = $this->getService()->findAll()->getResult(); |
13 | 13 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | public function testFind() |
19 | 19 | { |
20 | 20 | $entity = $this->getRepositoryTest() |
21 | - ->getFlushedMockObject(); |
|
21 | + ->getFlushedMockObject(); |
|
22 | 22 | |
23 | 23 | $find = $this->getService()->find($entity->getId()); |
24 | 24 |
@@ -10,11 +10,11 @@ |
||
10 | 10 | public function testRemove() |
11 | 11 | { |
12 | 12 | $entity = $this->getRepositoryTest() |
13 | - ->getFlushedMockObject(); |
|
13 | + ->getFlushedMockObject(); |
|
14 | 14 | |
15 | 15 | $this->getService() |
16 | - ->remove($entity->getId()) |
|
17 | - ->flush(); |
|
16 | + ->remove($entity->getId()) |
|
17 | + ->flush(); |
|
18 | 18 | |
19 | 19 | $find = $this->getService()->getMainRepository()->find($entity->getId()); |
20 | 20 | } |