|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* This file is part of the Cubiche package. |
|
4
|
|
|
* |
|
5
|
|
|
* Copyright (c) Cubiche |
|
6
|
|
|
* |
|
7
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
8
|
|
|
* file that was distributed with this source code. |
|
9
|
|
|
*/ |
|
10
|
|
|
namespace Cubiche\Infrastructure\Doctrine\ODM\MongoDB; |
|
11
|
|
|
|
|
12
|
|
|
use Doctrine\ODM\MongoDB\Events as BaseEvents; |
|
13
|
|
|
|
|
14
|
|
|
/** |
|
15
|
|
|
* Events Class. |
|
16
|
|
|
* |
|
17
|
|
|
* @author Karel Osorio Ramírez <[email protected]> |
|
18
|
|
|
*/ |
|
19
|
|
|
final class Events |
|
20
|
|
|
{ |
|
21
|
|
|
private function __construct() |
|
22
|
|
|
{ |
|
23
|
|
|
} |
|
24
|
|
|
|
|
25
|
|
|
/** |
|
26
|
|
|
* @var string |
|
27
|
|
|
* |
|
28
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::preRemove |
|
29
|
|
|
*/ |
|
30
|
|
|
const PRE_REMOVE = BaseEvents::preRemove; |
|
31
|
|
|
|
|
32
|
|
|
/** |
|
33
|
|
|
* @var string |
|
34
|
|
|
* |
|
35
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::postRemove |
|
36
|
|
|
*/ |
|
37
|
|
|
const POST_REMOVE = BaseEvents::postRemove; |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* @var string |
|
41
|
|
|
* |
|
42
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::prePersist |
|
43
|
|
|
*/ |
|
44
|
|
|
const PRE_PERSIST = BaseEvents::prePersist; |
|
45
|
|
|
|
|
46
|
|
|
/** |
|
47
|
|
|
* @var string |
|
48
|
|
|
* |
|
49
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::postPersist |
|
50
|
|
|
*/ |
|
51
|
|
|
const POST_PERSIST = BaseEvents::postPersist; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* @var string |
|
55
|
|
|
* |
|
56
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::preUpdate |
|
57
|
|
|
*/ |
|
58
|
|
|
const PRE_UPDATE = BaseEvents::preUpdate; |
|
59
|
|
|
|
|
60
|
|
|
/** |
|
61
|
|
|
* @var string |
|
62
|
|
|
* |
|
63
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::postUpdate |
|
64
|
|
|
*/ |
|
65
|
|
|
const POST_UPDATE = BaseEvents::postUpdate; |
|
66
|
|
|
|
|
67
|
|
|
/** |
|
68
|
|
|
* @var string |
|
69
|
|
|
* |
|
70
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::preLoad |
|
71
|
|
|
*/ |
|
72
|
|
|
const PRE_LOAD = BaseEvents::preLoad; |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @var string |
|
76
|
|
|
* |
|
77
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::postLoad |
|
78
|
|
|
*/ |
|
79
|
|
|
const POST_LOAD = BaseEvents::postLoad; |
|
80
|
|
|
|
|
81
|
|
|
/** |
|
82
|
|
|
* @var string |
|
83
|
|
|
* |
|
84
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::loadClassMetadata |
|
85
|
|
|
*/ |
|
86
|
|
|
const PRE_LOAD_CLASSMETADATA = 'preLoadClassMetadata'; |
|
87
|
|
|
|
|
88
|
|
|
/** |
|
89
|
|
|
* @var string |
|
90
|
|
|
* |
|
91
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::loadClassMetadata |
|
92
|
|
|
*/ |
|
93
|
|
|
const LOAD_CLASS_METADATA = BaseEvents::loadClassMetadata; |
|
94
|
|
|
|
|
95
|
|
|
/** |
|
96
|
|
|
* @var string |
|
97
|
|
|
* |
|
98
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::loadClassMetadata |
|
99
|
|
|
*/ |
|
100
|
|
|
const POST_LOAD_CLASS_METADATA = 'postLoadClassMetadata'; |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* @var string |
|
104
|
|
|
* |
|
105
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::preFlush |
|
106
|
|
|
*/ |
|
107
|
|
|
const PRE_FLUSH = BaseEvents::preFlush; |
|
108
|
|
|
|
|
109
|
|
|
/** |
|
110
|
|
|
* @var string |
|
111
|
|
|
* |
|
112
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::onFlush |
|
113
|
|
|
*/ |
|
114
|
|
|
const ON_FLUSH = BaseEvents::onFlush; |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* @var string |
|
118
|
|
|
* |
|
119
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::postFlush |
|
120
|
|
|
*/ |
|
121
|
|
|
const POST_FLUSH = BaseEvents::postFlush; |
|
122
|
|
|
|
|
123
|
|
|
/** |
|
124
|
|
|
* @var string |
|
125
|
|
|
* |
|
126
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::onClear |
|
127
|
|
|
*/ |
|
128
|
|
|
const ON_CLEAR = BaseEvents::onClear; |
|
129
|
|
|
|
|
130
|
|
|
/** |
|
131
|
|
|
* @var string |
|
132
|
|
|
* |
|
133
|
|
|
* @see \Doctrine\ODM\MongoDB\Events::registerDriverMetadata |
|
134
|
|
|
*/ |
|
135
|
|
|
const REGISTER_DRIVER_METADATA = 'registerDriverMetadata'; |
|
136
|
|
|
} |
|
137
|
|
|
|