WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface::getClassMetadataForEntity PHP Method

getClassMetadataForEntity() public method

Returns class metadata for given object
public getClassMetadataForEntity ( object $entity ) : Doctrine\Common\Persistence\Mapping\ClassMetadata
$entity object
return Doctrine\Common\Persistence\Mapping\ClassMetadata
    public function getClassMetadataForEntity($entity);

Usage Example

 /**
  * Returns the metadata for entity
  *
  * @param object $entity
  *
  * @return \Doctrine\Common\Persistence\Mapping\ClassMetadata
  */
 protected function getEntityMetadata($entity)
 {
     return $this->doctrineHelper->getClassMetadataForEntity($entity);
 }