Mapping/ClassMetadata.php
public function setPropertyValue($entity, $property, $value)
    {
        $this->reflFields[$property]->setValue($entity, $value);
    }
public function setPropertyValue($entity, $property, $value)
    {
        $this->reflFields[$property]->setValue($entity, $value);
    }
Sets the specified property to the specified value on the given entity

@param object $entity
@param string $property
@param mixed $value