10
10
namespace Gedmo \Timestampable ;
11
11
12
12
/**
13
- * This interface is not necessary but can be implemented for
14
- * Entities which in some cases needs to be identified as
15
- * Timestampable
13
+ * Marker interface for objects which can be identified as timestampable.
16
14
*
17
15
* @author Gediminas Morkevicius <[email protected] >
18
16
*/
@@ -21,35 +19,35 @@ interface Timestampable
21
19
// timestampable expects annotations on properties
22
20
23
21
/*
24
- * @gedmo: Timestampable(on="create")
22
+ * @Gedmo\ Timestampable(on="create")
25
23
* dates which should be updated on insert only
26
24
*/
27
25
28
26
/*
29
- * @gedmo: Timestampable(on="update")
27
+ * @Gedmo\ Timestampable(on="update")
30
28
* dates which should be updated on update and insert
31
29
*/
32
30
33
31
/*
34
- * @gedmo: Timestampable(on="change", field="field", value="value")
32
+ * @Gedmo\ Timestampable(on="change", field="field", value="value")
35
33
* dates which should be updated on changed "property"
36
34
* value and become equal to given "value"
37
35
*/
38
36
39
37
/*
40
- * @gedmo: Timestampable(on="change", field="field")
38
+ * @Gedmo\ Timestampable(on="change", field="field")
41
39
* dates which should be updated on changed "property"
42
40
*/
43
41
44
42
/*
45
- * @gedmo: Timestampable(on="change", fields={"field1", "field2"})
43
+ * @Gedmo\ Timestampable(on="change", fields={"field1", "field2"})
46
44
* dates which should be updated if at least one of the given fields changed
47
45
*/
48
46
49
47
/*
50
48
* example
51
49
*
52
- * @gedmo: Timestampable(on="create")
50
+ * @Gedmo\ Timestampable(on="create")
53
51
* @Column(type="date")
54
52
* $created
55
53
*/
0 commit comments