src/Bcol/Component/Type/Collection/TypedCachedCollection.php
function matching(Criteria $criteria)
    {
        $elements = $this->getCollection()->matching($criteria)->toArray();

        return new static($this->name, $this->cache, $elements);
    }
function matching(Criteria $criteria)
    {
        $elements = $this->getCollection()->matching($criteria)->toArray();

        return new static($this->name, $this->cache, $elements);
    }
@param Criteria $criteria

@return \Doctrine\Common\Collections\Collection|static