Understanding and Establishing Relations
In this section, we will look in depth into how to relate objects with other entities in Pimcore. As we have seen in the previous section, the first step is to add the appropriate fields onto our class to configure relations between two classes, or relations between classes and other entities (such as documents or assets). Here, you will see all the different kinds of relation components:
As you may see, there are two main different types of relation fields, the generic relation fields that allow relating objects, documents, or assets, and specific relation fields for object classes. For each type, we can establish a many-to-one relation, many-to-many relation, or advanced many-to-many relation. The last one lets you define some additional metadata fields that can be attached to the relation instances.
In the following sections, we will focus on the two main types of relation components...