Entity/UserPreference.php
public function setLocation(\Miky\Bundle\LocationBundle\Entity\Location $location = null)
    {
        $this->location = $location;

        return $this;
    }
public function setLocation(\Miky\Bundle\LocationBundle\Entity\Location $location = null)
    {
        $this->location = $location;

        return $this;
    }
Set location

@param \Miky\Bundle\LocationBundle\Entity\Location $location

@return UserPreference