I have a structure in my new website where I need to link an 'Application' to multiple 'Products' (and show them on the Application page as thumbnails). The way I would have done this in the past is to create a many to many relationship such as this (In Application.php)
private static $many_many = array( 'Products' => 'Product' );
Then I would choose the products to link to each Application by using a Grid FIeld.
However in this case i have multiple different types of Product e.g Product1 Product2 Product3.
I would like to do something such as
private static $many_many = array( 'Products' => array( 'Product1', 'Product2', 'Product3') );
Then the grid field should allow me to search products of all three types. But this doesn't seem to work the way I wanted it to.
If anyone has done something similar in the past that could point me in the right direction, it would be greatly appreciated.