We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
I have two entities, with @ManyToOne relationship between them.
@ManyToOne
class Customer { /** * @ORM\OneToMany(targetEntity="ContactSubmission", mappedBy="customer") */ private $contactSubmissions; }
class ContactSubmission { /** * @ORM\ManyToOne(targetEntity="Customer", inversedBy="contactSubmissions", cascade={"persist"}) * @ORM\JoinColumn(name="customerId", referencedColumnName="id") */ private $customer; }
My exclusion policy works great for one of them, but the relational entity fields are not being excluded according to their policies.
This is what I have for the exclusion policy:
MyNamespace\MyBundle\Entity\ContactSubmission: exclusion_policy: ALL properties: customer: expose: true type: MyNamespace\MyBundle\Entity\Customer subject: expose: true message: expose: true date: expose: true
Is there anyway I can set a field to represent that relationship or something like that?
The text was updated successfully, but these errors were encountered:
Please use the Symfony2 mailing list for usage questions.
Thanks!
Sorry, something went wrong.
No branches or pull requests
Hi!
I have two entities, with
@ManyToOne
relationship between them.My exclusion policy works great for one of them, but the relational entity fields are not being excluded according to their policies.
This is what I have for the exclusion policy:
Is there anyway I can set a field to represent that relationship or something like that?
The text was updated successfully, but these errors were encountered: