src/Phlexible/Bundle/SiterootBundle/Doctrine/SiterootManager.php
private function applyIdentifier(Siteroot $siteroot)
    {
        $reflectionClass = new \ReflectionClass(get_class($siteroot));

        $reflectionProperty = $reflectionClass->getProperty('id');
        $reflectionProperty->setAccessible(true);
        $reflectionProperty->setValue($siteroot, UuidUtil::generate());
    }
private function applyIdentifier(Siteroot $siteroot)
    {
        $reflectionClass = new \ReflectionClass(get_class($siteroot));

        $reflectionProperty = $reflectionClass->getProperty('id');
        $reflectionProperty->setAccessible(true);
        $reflectionProperty->setValue($siteroot, UuidUtil::generate());
    }
private function applyIdentifier ( Siteroot $ siteroot ) { $ reflectionClass = new \ ReflectionClass ( get_class ( $ siteroot ) ) ; $ reflectionProperty = $ reflectionClass -> getProperty ( 'id' ) ; $ reflectionProperty -> setAccessible ( true ) ; $ reflectionProperty -> setValue ( $ siteroot , UuidUtil :: generate ( ) ) ; }
Apply UUID as identifier when entity doesn't have one yet.

@param Siteroot $siteroot
Apply UUID as identifier when entity doesn t have one yet .