aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggEntity.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-02 02:29:48 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-02 02:29:48 +0000
commit9064861b7b3946aa16d73aa3975f4fe4d89a0d97 (patch)
tree2bc0b1faf3c50b879e310df01c41cb31d5788eca /engine/classes/ElggEntity.php
parentda7dbb5d2d72d146dfdac71382afb63f2038432e (diff)
downloadelgg-9064861b7b3946aa16d73aa3975f4fe4d89a0d97.tar.gz
elgg-9064861b7b3946aa16d73aa3975f4fe4d89a0d97.tar.bz2
Fixes #3208 setting time_created on update
git-svn-id: http://code.elgg.org/elgg/trunk@8904 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggEntity.php')
-rw-r--r--engine/classes/ElggEntity.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php
index 41f19a4c1..cfdaede71 100644
--- a/engine/classes/ElggEntity.php
+++ b/engine/classes/ElggEntity.php
@@ -95,6 +95,7 @@ abstract class ElggEntity extends ElggData implements
$this->attributes['site_guid'] = NULL;
$this->attributes['access_id'] = ACCESS_PRIVATE;
+ $this->attributes['time_created'] = NULL;
$this->attributes['time_updated'] = NULL;
$this->attributes['last_action'] = NULL;
$this->attributes['enabled'] = "yes";
@@ -222,7 +223,6 @@ abstract class ElggEntity extends ElggData implements
// Certain properties should not be manually changed!
switch ($name) {
case 'guid':
- case 'time_created':
case 'time_updated':
case 'last_action':
return FALSE;
@@ -1244,7 +1244,8 @@ abstract class ElggEntity extends ElggData implements
$this->get('guid'),
$this->get('owner_guid'),
$this->get('access_id'),
- $this->get('container_guid')
+ $this->get('container_guid'),
+ $this->get('time_created')
);
} else {
// Create a new entity (nb: using attribute array directly