private function savePlugin(Plugin $plugin)
    {
        $this
            ->pluginObjectManager
            ->persist($plugin);

        $this
            ->pluginObjectManager
            ->flush($plugin);

        return $this;
    }
private function savePlugin(Plugin $plugin)
    {
        $this
            ->pluginObjectManager
            ->persist($plugin);

        $this
            ->pluginObjectManager
            ->flush($plugin);

        return $this;
    }
private function savePlugin ( Plugin $ plugin ) { $ this -> pluginObjectManager -> persist ( $ plugin ) ; $ this -> pluginObjectManager -> flush ( $ plugin ) ; return $ this ; }
Saves a plugin into database.

@param Plugin $plugin Plugin

@return $this Self object
Saves a plugin into database .