symfony/symfony-docs — pull request #1836 by philipphoffmann (2012-10-20 11:05:07+00:00)
Title: fixed file property accessibility

The file property should be private and there should be a setter for the property (so the form can save it).
Otherwise doctrine complains about the public property: Field 'file' in class 'Acme\DemoBundle\Entity\Document' must be private or protected. Public fields may break lazy-loading.