/** * Perform a query on this relationship. * * @param array $params An array that can contain the following parameters:<br/> * <ul><li><b>where:</b> An array with 3 key/value pairs. * lhs_field: The name of the field to check search. * operator: The operator to use in the search. * rhs_value: The value to search for.<br/> * Example:<pre> * 'where' => array( * 'lhs_field' => 'source', * 'operator' => '=', * 'rhs_value' => 'external' * )</pre> * </li> * <li><b>limit:</b> The maximum number of rows</li> * <li><b>deleted:</b> If deleted is set to 1, only deleted records related to the current * record will be returned.</li></ul> * * @return array */ public function query($params) { return $this->relationship->load($this, $params); }