src/Kunstmaan/DashboardBundle/Repository/AnalyticsConfigRepository.php
public function saveProfileId($profileId, $id = false)
    {
        $em = $this->getEntityManager();
        $config = $id ? $this->find($id) : $this->findFirst();
        $config->setProfileId($profileId);
        $em->persist($config);
        $em->flush();
    }
public function saveProfileId($profileId, $id = false)
    {
        $em = $this->getEntityManager();
        $config = $id ? $this->find($id) : $this->findFirst();
        $config->setProfileId($profileId);
        $em->persist($config);
        $em->flush();
    }
public function saveProfileId ( $ profileId , $ id = false ) { $ em = $ this -> getEntityManager ( ) ; $ config = $ id ? $ this -> find ( $ id ) : $ this -> findFirst ( ) ; $ config -> setProfileId ( $ profileId ) ; $ em -> persist ( $ config ) ; $ em -> flush ( ) ; }
saves the profile id

@param string $profileId
saves the profile id