public function sio__vocabulary::query
3.x sio__vocabulary.inc | public sio__vocabulary::query($query, $condition) |
Overrides ChadoField::query
See also
File
- tripal_chado/
includes/ TripalFields/ sio__vocabulary/ sio__vocabulary.inc, line 100
Class
Code
public function query($query, $condition) {
$alias = $this->field['field_name'];
$operator = $condition['operator'];
$this->queryJoinOnce($query, 'cv', $alias, "base.cv_id = $alias.cv_id");
$query->condition("$alias.name", $condition['value'], $operator);
}