protected function setEntity($entityClass)
    {
        $this->repos = $this->doctrine->getRepository($entityClass);
        $this->className = $this->repos->getClassName();
        $this->classMetaData = $this->metadataFactory->getMetadataForClass($this->className);
    }