Adds a 'hidden_entity' form type for representing Doctrine entities as hidden fields.