docs icon indicating copy to clipboard operation
docs copied to clipboard

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

Open richardhj opened this issue 3 years ago • 1 comments

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).

richardhj avatar Aug 23 '22 15:08 richardhj

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 :)

richardhj avatar Oct 31 '22 09:10 richardhj