public function updateLocation(Location $location, $andFlush = true)
    {
        $this->objectManager->persist($location);
        if ($andFlush) {
            $this->objectManager->flush();
        }
    }
public function updateLocation(Location $location, $andFlush = true)
    {
        $this->objectManager->persist($location);
        if ($andFlush) {
            $this->objectManager->flush();
        }
    }
public function updateLocation ( Location $ location , $ andFlush = true ) { $ this -> objectManager -> persist ( $ location ) ; if ( $ andFlush ) { $ this -> objectManager -> flush ( ) ; } }
Updates a Location.

@param Location $location
@param Boolean $andFlush Whether to flush the changes (default true)
Updates a Location .