<?php

namespace OfficeBrain\Bundle\ActivityBundle\Document;

use Doctrine\ODM\MongoDB\DocumentRepository;

/**
 * SearchLogRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class KeywordBannerLogRepository extends DocumentRepository
{
    public function getQueryBudler()
    {
        return $this->getDocumentManager()->getRepository('OfficeBrainActivityBundle:KeywordBannerLog')->createQueryBuilder('a');
    }
    
    /**
     * @author Employee Id: 4488
     * Description :
     * save Keyword Banner Data in mongodb
     **/
    public function save($logObj)
    {
        $dm = $this->getDocumentManager();
        $dm->persist($logObj);
        $dm->flush();
        return $logObj;
    }
}
