public function getEntityPrototype()
    {
        if (!$this->entityPrototype) {
            if ($this->getEntityClass()) {
                $entityClass = $this->getEntityClass();
                $this->entityPrototype = new $entityClass;
            } else {
                $this->entityPrototype = new ArrayObject;
            }
        }

        return $this->entityPrototype;
    }
public function getEntityPrototype()
    {
        if (!$this->entityPrototype) {
            if ($this->getEntityClass()) {
                $entityClass = $this->getEntityClass();
                $this->entityPrototype = new $entityClass;
            } else {
                $this->entityPrototype = new ArrayObject;
            }
        }

        return $this->entityPrototype;
    }
{@inheritDoc}