public function newLog($introId,$user)
    {
        $introClass = $this->config['intro_class'];
        $em = $this->doctrine->getManager();
        $intro = $em->getRepository($introClass)->find($introId);
        $introLog = null;
        if($intro){
            $introLogClass = $this->config['intro_log_class'];
            $introLog = new $introLogClass();
            $introLog->setIntro($intro);
            $introLog->setUser($user);
        }
        return $introLog;
    }
public function newLog($introId,$user)
    {
        $introClass = $this->config['intro_class'];
        $em = $this->doctrine->getManager();
        $intro = $em->getRepository($introClass)->find($introId);
        $introLog = null;
        if($intro){
            $introLogClass = $this->config['intro_log_class'];
            $introLog = new $introLogClass();
            $introLog->setIntro($intro);
            $introLog->setUser($user);
        }
        return $introLog;
    }
public function newLog ( $ introId , $ user ) { $ introClass = $ this -> config [ 'intro_class' ] ; $ em = $ this -> doctrine -> getManager ( ) ; $ intro = $ em -> getRepository ( $ introClass ) -> find ( $ introId ) ; $ introLog = null ; if ( $ intro ) { $ introLogClass = $ this -> config [ 'intro_log_class' ] ; $ introLog = new $ introLogClass ( ) ; $ introLog -> setIntro ( $ intro ) ; $ introLog -> setUser ( $ user ) ; } return $ introLog ; }
Genera un nuevo log

@param type $introId
@param type $user
@param type $typeLog
@return \Tecnocreaciones\Bundle\ToolsBundle\Service\Intro\introLogClass
Genera un nuevo log