public function refreshLocation(Location $location)
    {

        $refreshedLocation = $this->findLocationBy(array('id' => $location->getId()));
        if (null === $refreshedLocation) {
            throw new UsernameNotFoundException(sprintf('User with ID "%d" could not be reloaded.', $location->getId()));
        }
        return $refreshedLocation;
    }
public function refreshLocation(Location $location)
    {

        $refreshedLocation = $this->findLocationBy(array('id' => $location->getId()));
        if (null === $refreshedLocation) {
            throw new UsernameNotFoundException(sprintf('User with ID "%d" could not be reloaded.', $location->getId()));
        }
        return $refreshedLocation;
    }
public function refreshLocation ( Location $ location ) { $ refreshedLocation = $ this -> findLocationBy ( array ( 'id' => $ location -> getId ( ) ) ) ; if ( null === $ refreshedLocation ) { throw new UsernameNotFoundException ( sprintf ( 'User with ID "%d" could not be reloaded.' , $ location -> getId ( ) ) ) ; } return $ refreshedLocation ; }
Refreshed a Location by Location Instance
@param LocationInterface $location
@return Ad
Refreshed a Location by Location Instance