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

Describe how to maintain Many-To-Many or One-To-Many relations with the DCA picker #1069

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

richardhj
Copy link
Member

I am using the DCA picker on Doctrine entities and this is how I got it working (real Doctrine associations instead of a serialized string in the database).

Copy link
Contributor

@fritzmg fritzmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not exactly sure I can merge this as is. I think the example will not be clear to the majority, as you are using entities for content elements and articles (if I understand this correctly)? In order to be of use for the rest it should use Contao's models instead, otherwise it is too specific to your personal Contao instance.

@richardhj
Copy link
Member Author

I think the example will not be clear to the majority, as you are using entities for content elements and articles (if I understand this correctly)? In order to be of use for the rest it should use Contao's models instead, otherwise it is too specific to your personal Contao instance.

In reality, I am using entities like Product and ProductCategory but adapted it to Article/ContentElement to match the docs entry :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants