Commit e2cc76fc authored by Karamel's avatar Karamel
Browse files

Convert Ticket date to timestamp on toStruct.

parent b473e58b
......@@ -22,6 +22,7 @@
namespace Pasteque\Server\Model;
use \Pasteque\Server\System\DateUtils;
use \Pasteque\Server\System\DAO\DoctrineModel;
/**
......@@ -306,4 +307,11 @@ public function getPayments() { return $this->payments; }
}
return $model;
}
public function toStruct() {
$struct = parent::toStruct();
$struct['date'] = DateUtils::toTimestamp($this->getDate());
return $struct;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment