Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide hidden fields on form from constraint #10

Merged
merged 1 commit into from
Oct 9, 2020

Conversation

Sylry
Copy link
Contributor

@Sylry Sylry commented Oct 6, 2020

When configuring AddressEmbeddable field with the EmbeddedAddressFormatConstraint, it would be great to not show hidden fields. This PR makes that

Example code:

/**
     * @ORM\Embedded(class="Daften\Bundle\AddressingBundle\Entity\AddressEmbeddable")
     * @AddressingBundleAssert\EmbeddedAddressFormatConstraint(fields={
     *     "locale",
     *     "organization",
     *     "addressLine1",
     *     "addressLine2",
     *     "postalCode",
     *     "locality",
     *     "dependentLocality",
     *     "administrativeArea",
     *     "countryCode",
     * })
     */
    protected $address;

@daften
Copy link
Owner

daften commented Oct 6, 2020

Thanks @Sylry , I'll try to test this tonight.

@daften daften merged commit 006d381 into daften:develop Oct 9, 2020
@daften
Copy link
Owner

daften commented Oct 9, 2020

Thanks @Sylry , works like a charm!

@Sylry Sylry deleted the feature/hidden_fields_on_form branch August 2, 2022 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants