6AuEOQE4dAt7wCxlkBAmTY changeset

Changeset353961396662 (b)
ParentNone (a)
ab
0+            $m = $article->metadata;
0+            var_dump($m);
0+            var_dump($article->metadata->published);
0+            var_dump($article->metadata->published);
0+            $article->metadata->published->setTimestamp(time());
0+            var_dump($article->metadata);
0+            die();
0+           
0+
0+object(midgard_datetime)#65 (5) {
0+  ["object":"midgard_datetime":private]=>
0+  string(0) ""
0+  ["property":"midgard_datetime":private]=>
0+  string(0) ""
0+  ["date"]=>
0+  string(19) "0001-01-01 00:00:00"
0+  ["timezone_type"]=>
0+  int(1)
0+  ["timezone"]=>
0+  string(6) "+00:00"
0+}
0+object(midgard_datetime)#242 (5) {
0+  ["object":"midgard_datetime":private]=>
0+  string(0) ""
0+  ["property":"midgard_datetime":private]=>
0+  string(0) ""
0+  ["date"]=>
0+  string(19) "0001-01-01 00:00:00"
0+  ["timezone_type"]=>
0+  int(1)
0+  ["timezone"]=>
0+  string(6) "+00:00"
0+}
0+object(midgard_datetime)#216 (5) {
0+  ["object":"midgard_datetime":private]=>
0+  string(0) ""
0+  ["property":"midgard_datetime":private]=>
0+  string(0) ""
0+  ["date"]=>
0+  string(19) "0001-01-01 00:00:00"
0+  ["timezone_type"]=>
0+  int(1)
0+  ["timezone"]=>
0+  string(6) "+00:00"
0+}
0+
0+Notice: Trying to get property of non-object in /home/bergie/.midgard2/openkeidas/org_midgardproject_news/bin/update_news.php on line 72
0+
0+Fatal error: Call to a member function setTimestamp() on a non-object in /home/bergie/.midgard2/openkeidas/org_midgardproject_news/bin/update_news.php on line 72
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--- Revision None
+++ Revision 353961396662
@@ -0,0 +1,49 @@
+ $m = $article->metadata;
+ var_dump($m);
+ var_dump($article->metadata->published);
+ var_dump($article->metadata->published);
+ $article->metadata->published->setTimestamp(time());
+ var_dump($article->metadata);
+ die();
+
+
+object(midgard_datetime)#65 (5) {
+ ["object":"midgard_datetime":private]=>
+ string(0) ""
+ ["property":"midgard_datetime":private]=>
+ string(0) ""
+ ["date"]=>
+ string(19) "0001-01-01 00:00:00"
+ ["timezone_type"]=>
+ int(1)
+ ["timezone"]=>
+ string(6) "+00:00"
+}
+object(midgard_datetime)#242 (5) {
+ ["object":"midgard_datetime":private]=>
+ string(0) ""
+ ["property":"midgard_datetime":private]=>
+ string(0) ""
+ ["date"]=>
+ string(19) "0001-01-01 00:00:00"
+ ["timezone_type"]=>
+ int(1)
+ ["timezone"]=>
+ string(6) "+00:00"
+}
+object(midgard_datetime)#216 (5) {
+ ["object":"midgard_datetime":private]=>
+ string(0) ""
+ ["property":"midgard_datetime":private]=>
+ string(0) ""
+ ["date"]=>
+ string(19) "0001-01-01 00:00:00"
+ ["timezone_type"]=>
+ int(1)
+ ["timezone"]=>
+ string(6) "+00:00"
+}
+
+Notice: Trying to get property of non-object in /home/bergie/.midgard2/openkeidas/org_midgardproject_news/bin/update_news.php on line 72
+
+Fatal error: Call to a member function setTimestamp() on a non-object in /home/bergie/.midgard2/openkeidas/org_midgardproject_news/bin/update_news.php on line 72