Commit 4aac1e0a authored by Fabien Potencier's avatar Fabien Potencier

merged branch igorw/2.2-tests (PR #639)

This PR was merged into the master branch.

Commits
-------

6e8d404e Add symfony/property-access require for 2.2
337a92c4 Make travis pass on Symfony 2.2

Discussion
----------

Make travis pass on Symfony 2.2

Make travis actually update the lock file and install the 2.2 components.
Document deprecation of getClassMetadata in validator docs.
parents f683583b 6e8d404e
......@@ -6,7 +6,7 @@ env:
before_script:
# symfony/*
- sh -c "if [ '$SYMFONY_DEPS_VERSION' = '2.2' ]; then sed -i 's/>=2.1,<2.3-dev/2.2.*@dev/g' composer.json; fi"
- sh -c "if [ '$SYMFONY_DEPS_VERSION' = '2.2' ]; then sed -i 's/>=2.1,<2.3-dev/2.2.*@dev/g' composer.json; composer require --no-update 'symfony/property-access:2.2.*@dev'; composer update --dev --prefer-source; fi"
- composer install --dev --prefer-source
php:
......
......@@ -150,6 +150,11 @@ the class properties and getters, and then call the ``validate`` method::
echo 'The author is valid';
}
.. note::
If you are using Symfony 2.2, replace the ``getClassMetadata`` calls with
calls to the new ``getMetadataFor`` method.
You can also declare the class constraint by adding a static
``loadValidatorMetadata`` method to your classes::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment