PartKeepr\DistributorBundle\Entity\Distributor::setName PHP Method

setName() public method

Sets the name for the distributor.
public setName ( string $name )
$name string The distributor's name
    public function setName($name)
    {
        $this->name = $name;
    }

Usage Example

 public function load(ObjectManager $manager)
 {
     $distributor = new Distributor();
     $distributor->setName("TEST");
     $manager->persist($distributor);
     $manager->flush();
     $this->addReference("distributor.first", $distributor);
 }