PartKeepr\ManufacturerBundle\Entity\ManufacturerICLogo::setManufacturer PHP Method

setManufacturer() public method

Sets the manufacturer.
public setManufacturer ( Manufacturer $manufacturer = null )
$manufacturer Manufacturer The manufacturer to set
    public function setManufacturer(Manufacturer $manufacturer = null)
    {
        $this->manufacturer = $manufacturer;
    }

Usage Example

Example #1
0
 /**
  * Removes an IC Logo.
  *
  * @param ManufacturerICLogo $icLogo
  */
 public function removeIcLogo(ManufacturerICLogo $icLogo)
 {
     $icLogo->setManufacturer(null);
     $this->icLogos->removeElement($icLogo);
 }