make clone possible

This commit is contained in:
DavidBadura
2015-02-06 18:01:04 +00:00
parent 9ef7c833f0
commit d2596a35f0
2 changed files with 36 additions and 0 deletions

View File

@@ -262,4 +262,14 @@ class Task
{
return $this->status == self::STATUS_DELETED;
}
/**
*
*/
public function __clone()
{
$this->uuid = null;
$this->entry = new \DateTime('now', new \DateTimeZone('UTC'));
$this->status = self::STATUS_PENDING;
}
}