示例#1
0
 /**
  * This function is similair getJoin except for M2m relationships it won't join agaist the final table.
  * Its used to retrieve the ID of the related beans only
  *
  * @param array $params       array of parameters. Possible parameters include:
  *                            'return_as_array': returns the query broken into
  * @param bool  $return_array same as passing 'return_as_array' into parameters
  *
  * @return string/array query to use when joining for subpanels
  */
 public function getSubpanelQuery($params = [], $return_array = false)
 {
     if (!empty($this->def['ignore_role'])) {
         $params['ignore_role'] = true;
     }
     return $this->relationship->getSubpanelQuery($this, $params, $return_array);
 }