src/Kunstmaan/AdminBundle/Helper/Security/Acl/AclHelper.php
protected function cloneQuery(Query $query)
    {
        $aclAppliedQuery = clone $query;
        $params = $query->getParameters();
        /* @var $param Parameter */
        foreach ($params as $param) {
            $aclAppliedQuery->setParameter($param->getName(), $param->getValue(), $param->getType());
        }

        return $aclAppliedQuery;
    }
protected function cloneQuery(Query $query)
    {
        $aclAppliedQuery = clone $query;
        $params = $query->getParameters();
        /* @var $param Parameter */
        foreach ($params as $param) {
            $aclAppliedQuery->setParameter($param->getName(), $param->getValue(), $param->getType());
        }

        return $aclAppliedQuery;
    }
protected function cloneQuery ( Query $ query ) { $ aclAppliedQuery = clone $ query ; $ params = $ query -> getParameters ( ) ; /* @var $param Parameter */ foreach ( $ params as $ param ) { $ aclAppliedQuery -> setParameter ( $ param -> getName ( ) , $ param -> getValue ( ) , $ param -> getType ( ) ) ; } return $ aclAppliedQuery ; }
Clone specified query with parameters.

@param Query $query

@return Query
Clone specified query with parameters .