/**
  * Add the default properties accesses for each roles
  */
 public function addDefaultProperties()
 {
     $properties = User::getEditableProperties();
     $this->om->startFlushSuite();
     foreach ($properties as $property => $editable) {
         $this->addProperties($property, $editable);
     }
     $this->om->endFlushSuite();
 }
 /**
  * Returns the facet list.
  *
  * @EXT\Route("/properties", name="claro_admin_profile_properties")
  * @EXT\Template
  *
  * @return Response
  */
 public function profilePropertiesAction()
 {
     $platformRoles = $this->roleManager->getPlatformNonAdminRoles(false);
     $labels = User::getEditableProperties();
     $properties = $this->profilePropertyManager->getAllProperties();
     return ['platformRoles' => $platformRoles, 'labels' => $labels, 'properties' => $properties];
 }