PartKeepr\PartBundle\Entity\PartManufacturer::setPart PHP Method

setPart() public method

Sets the part which belongs to this manufacturer entry.
public setPart ( Part $part = null )
$part Part
    public function setPart(Part $part = null)
    {
        $this->part = $part;
    }

Usage Example

Exemplo n.º 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);
 }