@@ 91-102 (lines=12) @@ | ||
88 | /** |
|
89 | * @ODM\PostPersist |
|
90 | */ |
|
91 | public function postPersist() |
|
92 | { |
|
93 | $repository = $this->getRepository(); |
|
94 | ||
95 | if (method_exists($repository, 'postSave')) { |
|
96 | $repository->postSave($this); |
|
97 | } |
|
98 | ||
99 | if (method_exists($repository, 'postSave')) { |
|
100 | $repository->validate($this); |
|
101 | } |
|
102 | } |
|
103 | ||
104 | /** |
|
105 | * @ODM\PreUpdate |
|
@@ 123-134 (lines=12) @@ | ||
120 | /** |
|
121 | * @ODM\PostUpdate |
|
122 | */ |
|
123 | public function postUpdate() |
|
124 | { |
|
125 | $repository = $this->getRepository(); |
|
126 | ||
127 | if (method_exists($repository, 'postSave')) { |
|
128 | $repository->postSave($this); |
|
129 | } |
|
130 | ||
131 | if (method_exists($repository, 'postSave')) { |
|
132 | $repository->validate($this); |
|
133 | } |
|
134 | } |
|
135 | ||
136 | /** |
|
137 | * @ORM\PreFlush |