Build a subquery to check the existence and row_type of a related record.
Class: bb_database, called as $main
File: bb_database.php (php)
function process_related(&$arr_select_where, $arr_layouts, $value, $str)
$main->process_related($arr_select_where, $arr_layouts, $value, $str);
Note: this function called in pluggable function
Empty array passed as reference and populated with a subquery parts suitable for a
WHERE EXISTS clause in an update or insert statement.
Reduced layouts JSON meta data passed in.
Column array part passed in from foreach loop.
Primary field from related layout string with the related record information prepended.