protected function setProperty(&$reflectionClass, $entity, $name, $value)
    {
        $property = $reflectionClass->getProperty($name);
        $property->setAccessible(true);
        $property->setValue($entity, $value);
    }
protected function setProperty(&$reflectionClass, $entity, $name, $value)
    {
        $property = $reflectionClass->getProperty($name);
        $property->setAccessible(true);
        $property->setValue($entity, $value);
    }
protected function setProperty ( & $ reflectionClass , $ entity , $ name , $ value ) { $ property = $ reflectionClass -> getProperty ( $ name ) ; $ property -> setAccessible ( true ) ; $ property -> setValue ( $ entity , $ value ) ; }
Set a private property of an entity.

@param \ReflectionClass $reflectionClass
@param object $entity
@param string $name
@param mixed $value
@return void
Set a private property of an entity .