<?php
/**
 * MetaTagPreset Repository
 * 
 * @author Visual Media 
 */
namespace VisualM\TagManagerBundle\Entity;

use VisualM\TagManagerBundle\Model\MetaTagBaseManager;
use Doctrine\ORM\QueryBuilder;
use VisualM\ModelManagementBundle\Definition\ModelManagerInterface;

/**
 * MetaTagPreset Repository
 * 
 * @author Visual Media 
 */
class MetaTagPresetRepository extends MetaTagBaseManager implements ModelManagerInterface
{
    /**
     * {@inheritDoc}
     */
    protected function processConditions(array $options, QueryBuilder &$qb)
    {
        foreach($options as $option => $value) {
            if ($option == 'id') {
                $qb->andWhere($qb->expr()->eq($this->getFullFieldName('id'), $qb->expr()->literal($value)));
            }
        }
    }
    
}
