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