use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
@UniqueEntity({"store_id","user_id"})
php app/console doctrine:schema:update --force
Nothing to update - your database is already in sync with the current entity metadata.
I tried to delete and create the table again, there is no unique key created.