function _getFilter($tname = FALSE) { $result = ""; if ($tname === FALSE) { $result .= " AND (idOwner = '" . (int) $this->idOwner . "') "; } else { $result .= " AND (" . $tname . ".idOwner = '" . (int) $this->idOwner . "') "; } return parent::_getFilter($tname) . $result; }