<p dir="auto">Tried to get help from mailing list, but nobody responded. See <a href="https://groups.google.com/forum/?fromgroups#!topic/symfony2/Ib7pMtVpV3Q" rel="nofollow">https://groups.google.com/forum/?fromgroups#!topic/symfony2/Ib7pMtVpV3Q</a> for text explanations</p>
<p dir="auto">I wrote simple test controller + test case to check this issue and it's failing.<br>
See <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/biozshock/symfony-standard/commit/0bcd739bc4c1e1bc1dc55c0598bb0d6831b40ef6/hovercard" href="https://github.com/biozshock/symfony-standard/commit/0bcd739bc4c1e1bc1dc55c0598bb0d6831b40ef6">biozshock/symfony-standard@<tt>0bcd739</tt></a></p>
<p dir="auto">Functionality was added at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/10998586787f31e5d1e33d4e21035c83cbe23489/hovercard" href="https://github.com/symfony/symfony/commit/10998586787f31e5d1e33d4e21035c83cbe23489"><tt>1099858</tt></a> but i think tests do not fully cover it.</p>
<p dir="auto">Or maybe I'm doing something in a wrong way?</p>
<p dir="auto">While trying out the new form PATCH feature, I ran into a bug:</p>
<p dir="auto">Say for instance you have a form with two children: firstName, lastName,</p>
<p dir="auto">and you PATCH with this data: <code class="notranslate">array('firstName' =&gt; 'Hank')</code></p>
<p dir="auto">now the "submit" method is never called on the child "lastName". Now there's a problem, because Form::isValid() only returns <code class="notranslate">true</code> if <code class="notranslate">$this-&gt;submitted</code> is <code class="notranslate">true</code>. However, this is <code class="notranslate">false</code> for the "lastName" child. A form with children, in turn, will only return <code class="notranslate">true</code>, if all of it's children are <code class="notranslate">true</code>, which, now, is not the case.</p>