Symfony 3 - Form collection field error displaying outside the field
<p>Could anyone tell me why error related to form collection is displaying outside the particular field and how to move it to place like you see in image included below?</p>

<p><a href="https://i.stack.imgur.com/n52fa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n52fa.png" alt="enter image description here"></a></p>

<p>Code of this field:</p>

<pre><code>/**
 * @Assert\Valid
 * @ORM\OneToMany(
 *     targetEntity="PageFile",
 *     mappedBy="page",
 *     cascade={"persist","remove"},
 *     orphanRemoval=true
 * )
 * @var PageFile[]
 * @Assert\Count(max="1")
 */
private $pageFiles;
</code></pre>

<p>Config:</p>

<pre><code>                - property: 'pageFiles'
                  type: 'collection'
                  type_options:
                      entry_type: 'Notimeo\PageBundle\Form\Type\MyFileType'
                      by_reference: false
                      error_bubbling: false
</code></pre>

<p>I'm using <a href="https://github.com/javiereguiluz/EasyAdminBundle" rel="nofollow noreferrer">EasyAdminBundle</a> and here's my whole project: <a href="https://github.com/ktrzos/SymfonyBasic" rel="nofollow noreferrer">https://github.com/ktrzos/SymfonyBasic</a>. Problem applies to "<em>Notimeo\PageBundle</em>".</p>