<p dir="auto">I want to override the FOSUserBundle validation.xml so I created a new bundle which extends the FOSUserBundle:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public function getParent()
{
    return 'FOSUserBundle';
}"><pre class="notranslate"><code class="notranslate">public function getParent()
{
    return 'FOSUserBundle';
}
</code></pre></div>
<p dir="auto">But the validation.xml of the FOSUserBundle is still loaded.</p>
<p dir="auto">I think the Validation component should respect the bundle inheritance.</p>
<p dir="auto">I'm trying to override validation of a parent bundle, here is my <a href="https://github.com/umpirsky/Sylius-Sandbox/commit/3a2e89b31348bd1b9fa654030ee75204f4c0403f">code</a>.</p>
<p dir="auto">Here is parent bundle <a href="https://github.com/Sylius/SyliusAssortmentBundle/blob/master/Resources/config/validation.xml">validation.xml</a>.</p>
<p dir="auto">In this particular case, I want to make product description optional.</p>
<p dir="auto">Following <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stof/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stof">@stof</a> comments on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3022652" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/3224" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/3224/hovercard" href="https://github.com/symfony/symfony/issues/3224">#3224</a> I decided to go with validation groups.</p>
<p dir="auto">But the effect I got is that now, fields are not validated at all. I mean, none of constraints from <code class="notranslate">Default</code> or <code class="notranslate">Sandbox</code> group are applied.</p>