@@ -16,10 +16,16 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function forcePersist(); |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @return void |
|
| 21 | + */ |
|
| 19 | 22 | public function prePersist(); |
| 20 | 23 | |
| 21 | 24 | public function postPersist(); |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 23 | 29 | public function preUpdate(); |
| 24 | 30 | |
| 25 | 31 | public function postUpdate(); |
@@ -186,6 +186,9 @@ |
||
| 186 | 186 | return $this->getOnlyStore(); |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | + /** |
|
| 190 | + * @param string $key |
|
| 191 | + */ |
|
| 189 | 192 | final protected function checkOnyExceptInArray($key, array $options = null) |
| 190 | 193 | { |
| 191 | 194 | if ( |
@@ -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 | public function getRepository() |