/** * Set provider * * @param \AppBundle\Entity\Provider $provider * * @return Contact */ public function setProvider(\AppBundle\Entity\Provider $provider = null) { $this->provider = $provider; if ($this->provider != null) { $this->provider->addContact($this); } return $this; }