setPart() public method

Sets the part.
public setPart ( Part $part = null )
$part Part The part
示例#1
0
 /**
  * Removes a part distributor
  *
  * @param PartDistributor $partDistributor A part distributor to remove
  */
 public function removeDistributor(PartDistributor $partDistributor)
 {
     $partDistributor->setPart(null);
     $this->distributors->removeElement($partDistributor);
 }