I'm trying this approach with a league and assigning teams to it. I'm changing the where clause in the child subclass so that it displays teams with grucomp_id=NULL, the code is the following:
// ****************************************************************************
function _cm_pre_getData ($where, $where_array, $fieldarray=null)
{
$where = "equipo.grucomp_id IS NULL AND grucomp.liga_id in
(SELECT liga.liga_id FROM liga WHERE liga.deporte_id=equipo.deporte_id AND liga.categoria_id =
equipo.categoria_id AND liga.temporada_id = equipo.temporada_id)";
return $where;
} // _cm_pre_getData
By debugging the sql file I see that the where clause is equipo.grucomp_id IS NULL
and that all the other conditions in the clause are erased.
Any tips to where the where clause removes the last part of the conditions I add?