symfony/symfony — pull request #4770 by gajdaw (2012-07-06 09:56:43+00:00)
Title: [Component][HttpKernel] issue #4719 test and fix

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: [![Build Status](https://secure.travis-ci.org/gajdaw/symfony.png?branch=master)](http://travis-ci.org/gajdaw/symfony)
Fixes the following tickets: #4719
Todo: -
License of the code: MIT
Documentation PR: -

When we store profile multiple times:

->write($profile1);
->write($profile1);
->write($profile1);

->write($profile2);
->write($profile2);
->write($profile2);

it is duplicated in the index. Next search restricted to 2 items :

->find('', '', 2)

returns only one item. The reason is that each duplicate decreases counter of returned items.