public function testUnixTimestampTypesAreRoundTripped()
{
$ts = new \DateTime();
$object = new DomainObject(array('type' => 'Llama'));
$object->unixtime = $ts;
$object->save();
$this->assertRowCount(1, "SELECT * FROM domainobject WHERE unixtime='" . $ts->getTimestamp() . "'");
$llamaById = DomainObject::byId(1);
$this->assertSame($llamaById->id, 1);
$this->assertSame($llamaById->type, 'Llama');
$this->assertSame($llamaById->unixtime->getTimestamp(), $ts->getTimestamp());
}