concrete/src/Entity/File/Version.php
protected function save($flush = true)
    {
        $app = Application::getFacadeApplication();
        $em = $app->make(EntityManagerInterface::class);
        $em->persist($this);
        if ($flush) {
            $em->flush();
        }
    }
protected function save($flush = true)
    {
        $app = Application::getFacadeApplication();
        $em = $app->make(EntityManagerInterface::class);
        $em->persist($this);
        if ($flush) {
            $em->flush();
        }
    }
protected function save ( $ flush = true ) { $ app = Application :: getFacadeApplication ( ) ; $ em = $ app -> make ( EntityManagerInterface :: class ) ; $ em -> persist ( $ this ) ; if ( $ flush ) { $ em -> flush ( ) ; } }
Save the instance changes.

@param bool $flush Flush the EM cache?
Save the instance changes .