<?php

namespace OfficeBrain\Bundle\ActivityBundle\Document;

use Doctrine\ODM\MongoDB\DocumentRepository;

/**
 * ActivityLogRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class ActivityLogRepository extends DocumentRepository
{
    public function getQueryBudler()
    {
        return $this->getDocumentManager()->getRepository('OfficeBrainActivityBundle:ActivityLog')->createQueryBuilder('a');
    }
    
    public function save($logObj)
    {
        $dm = $this->getDocumentManager();
        $dm->persist($logObj);
        $dm->flush();
        return $logObj;
    }
}
