setPart() public method

Sets the part which belongs to this manufacturer entry.
public setPart ( Part $part = null )
$part Part
Example #1
0
 /**
  * Removes a part manufacturer
  *
  * @param PartManufacturer $partManufacturer A part manufacturer to remove
  */
 public function removeManufacturer(PartManufacturer $partManufacturer)
 {
     $partManufacturer->setPart(null);
     $this->manufacturers->removeElement($partManufacturer);
 }