Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
 public function newInstance()
    {
        ....
    }

PHP

 

mit diesem Code ersetzten:

   

Codeblock
public function newInstance()
    {
        if ($this->_prototype === null) {
            $prototype = unserialize(sprintf('O:%d:"%s":0:{}', strlen($this->name), $this->name));
            // fix: see https://github.com/doctrine/doctrine2/pull/1045
            if (!is_object($prototype)) {
                $prototype = $this->reflClass->newInstanceWithoutConstructor();
            }
            $this->_prototype = $prototype;

        }
        return clone $this->_prototype;
    }

PHP

...

Danach kann das Update erneut ausgeführt werden.

...