Doctrine\Common\Persistence\ObjectRepository::getClassName PHP Method

getClassName() public method

Returns the class name of the object managed by the repository.
public getClassName ( ) : string
return string
    public function getClassName();

Usage Example

 /**
  * {@inheritdoc}
  */
 public function reverseTransform($value)
 {
     if (!$value) {
         return null;
     }
     if (null === ($entity = $this->repository->findOneBy(array($this->identifier => $value)))) {
         throw new TransformationFailedException(sprintf('Object "%s" with identifier "%s"="%s" does not exist.', $this->repository->getClassName(), $this->identifier, $value));
     }
     return $entity;
 }
All Usage Examples Of Doctrine\Common\Persistence\ObjectRepository::getClassName