Doctrine\OXM\Mapping\ClassMetadata::newInstance PHP 메소드

newInstance() 공개 메소드

Creates a new instance of the mapped class, without invoking the constructor.
public newInstance ( ) : object
리턴 object
    public function newInstance()
    {
        if ($this->prototype === null) {
            $this->prototype = unserialize(sprintf('O:%d:"%s":0:{}', strlen($this->name), $this->name));
        }
        return clone $this->prototype;
    }