small fixes
This commit is contained in:
parent
ed9f71e519
commit
78fa8c2129
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ abstract class Interpreter implements InterpreterInterface {
|
|||
$this->from = (isset($from)) ? self::parseDateTimeString($from, time() * 1000) : NULL;
|
||||
$this->to = (isset($to)) ? self::parseDateTimeString($to, (isset($this->from)) ? $this->from : time() * 1000) : NULL;
|
||||
|
||||
Util\Debug::log('interval', $this->from, $this->to, strftime('%c', $this->from/1000), strftime('%c', $this->to/1000));
|
||||
//Util\Debug::log('interval', $this->from, $this->to, strftime('%c', $this->from/1000), strftime('%c', $this->to/1000));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -197,7 +197,7 @@ abstract class Entity {
|
|||
* @return Interpreter
|
||||
*/
|
||||
public function getInterpreter(\Doctrine\ORM\EntityManager $em, $from, $to) {
|
||||
$class = 'Volkszaehler\Interpreter\\' . $this->getDefinition()->getInterpreter();
|
||||
$class = $this->getDefinition()->getInterpreter();
|
||||
return new $class($this, $em, $from, $to);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue