public function getEntityProperties($entity)
    {
        $metadata = $this->em->getClassMetadata(get_class($entity));
        return array_merge($metadata->getFieldNames(), $metadata->getAssociationNames());
    }
public function getEntityProperties($entity)
    {
        $metadata = $this->em->getClassMetadata(get_class($entity));
        return array_merge($metadata->getFieldNames(), $metadata->getAssociationNames());
    }
public function getEntityProperties ( $ entity ) { $ metadata = $ this -> em -> getClassMetadata ( get_class ( $ entity ) ) ; return array_merge ( $ metadata -> getFieldNames ( ) , $ metadata -> getAssociationNames ( ) ) ; }
Return entity properties names
@param type $entity
@return array
Return entity properties names