Skip to content

Instantly share code, notes, and snippets.

@Tuurlijk
Created March 19, 2014 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tuurlijk/9639451 to your computer and use it in GitHub Desktop.
Save Tuurlijk/9639451 to your computer and use it in GitHub Desktop.
Map a FLOW model onto an exising table.
<?php
namespace Typofree\Typo3Benchmark\Domain\Model;
/* *
* This script belongs to the TYPO3 Flow package "Typofree.Typo3Benchmark".*
* *
* */
use TYPO3\Flow\Annotations as Flow;
use Doctrine\ORM\Mapping as ORM;
/**
* @Flow\Entity
* @ORM\Table(name="details")
*/
class ImportMeasurement {
/**
* @var string
* @ORM\Id
* @ORM\Column(name="id")
* @ORM\GeneratedValue
*/
protected $persistenceObjectIdentifier;
/**
* @var string
* @ORM\Column(name="url")
*/
protected $url;
/**
* @var integer
* @ORM\Column(name="wt")
*/
protected $wallTime;
/**
* @var integer
* @ORM\Column(name="cpu")
*/
protected $cpuTime;
/**
* @var integer
* @ORM\Column(name="pmu")
*/
protected $peakMemoryUsage;
/**
* @var integer
* @ORM\Column(name="ct")
*/
protected $callCount;
/**
* @var DateTime
* @ORM\Column(name="timestamp")
*/
protected $timestamp;
/**
* @var integer
* @ORM\Column(name="imported")
*/
protected $imported;
/**
* @var string
* @ORM\Column(name="hash")
*/
protected $hash;
/**
* @return int
*/
public function getCallCount() {
return $this->callCount;
}
/**
* @return int
*/
public function getCpuTime() {
return $this->cpuTime;
}
/**
* @return string
*/
public function getHash() {
return $this->hash;
}
/**
* @return int
*/
public function getPeakMemoryUsage() {
return $this->peakMemoryUsage;
}
/**
* @return string
*/
public function getPersistenceObjectIdentifier() {
return $this->persistenceObjectIdentifier;
}
/**
* @return string
*/
public function getUrl() {
return $this->url;
}
/**
* @return int
*/
public function getWallTime() {
return $this->wallTime;
}
/**
* @return \Typofree\Typo3Benchmark\Domain\Model\DateTime
*/
public function getTimestamp() {
return $this->timestamp;
}
/**
* @return int
*/
public function getImported() {
return $this->imported;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment