Sulu\Component\Rest\Listing\ListRestHelper::getAllFields PHP Method

getAllFields() public method

returns all field names for a certain entity.
public getAllFields ( $entityName ) : array
$entityName
return array
    public function getAllFields($entityName)
    {
        return $this->em->getClassMetadata($entityName)->getFieldNames();
    }