Ben Wilson
Ben Wilson

Reputation: 544

How to get the referencedColumnName for a OneToMany association in Symfony 6?

I need to get the join table column name (ex: underscored_entity_id) for a OneToMany association in Symfony 6.

The metadata associationMappings for a OneToOne has joinColumns which has referencedColumnName.

How do I get this same data for a OneToMany?

Wound up getting it from the inverse association. Is there any way to get it without going through that?

Upvotes: 0

Views: 13

Answers (0)

Related Questions