CIData - getM2MTable(String table, String refField)

Gets an array of data maps in the given many-to-many list (to this CI).

The array is not in any particular order. If this is not a many-to-many list, returns an empty array.

Table 1. Parameters
Name Type Description
table String The name of the table containing the related list. In the case of a many-to-many list, this is the name of the many-to-many table, not the target table.
refField String The name of the field in the related list that refers to this CI. In the case of a many-to-many list, this is the name of the referring field in the many-to-many table, not in the target table.
Table 2. Returns
Type Description
Array an array of data maps in the given many-to-many list. If this is not a many-to-many list, returns an empty array.