FriendsOfSymfony / FOSCommentBundle

Threaded comments for Symfony
http://friendsofsymfony.github.com/
MIT License
462 stars 230 forks source link

Translation constraints #587

Closed Nelrann closed 7 years ago

Nelrann commented 7 years ago

Hi Why not use symfony default error messages for constraints?

if i remove this line and this line

i have the same message translated but with the correct local

thx

Nelrann commented 7 years ago

When I try to extend FOSCommentbundle

    <class name="FOS\CommentBundle\Model\Comment">
        <property name="body">
            <constraint name="NotBlank">
            </constraint>
            <constraint name="Length">
                <option name="min">3</option>
                <option name="max">10000</option>
            </constraint>
        </property>
    </class>

i have 2 errors for body field

Nelrann commented 7 years ago

Issue resolved with last version of bundle 2.0.9