--- 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