PartKeepr\StorageLocationBundle\Entity\StorageLocation::setName PHP Method

setName() public method

Sets the name for the storage location.
public setName ( string $name )
$name string the name to set
    public function setName($name)
    {
        $this->name = $name;
    }

Usage Example

 public function load(ObjectManager $manager)
 {
     $storageLocation = new StorageLocation();
     $storageLocation->setName("test");
     $storageLocation->setCategory($this->getReference("storagelocationcategory.first"));
     $manager->persist($storageLocation);
     $manager->flush();
     $this->addReference("storagelocation.first", $storageLocation);
 }
All Usage Examples Of PartKeepr\StorageLocationBundle\Entity\StorageLocation::setName