public function hasChildren($childrenClass, $outs = array())
{
if (empty($outs)) {
$out = '.out()';
} else {
$out = array();
if (!is_array($outs)) {
$outs = array($outs);
}
foreach ($outs as $o) {
if (empty($o)) {
$out[] = '.out()';
} else {
$out[] = ".out('{$o}')";
}
}
$out = implode('', $out);
}
$this->addMethod('where( __' . $out . '.hasLabel(' . $this->SorA($childrenClass) . '))');
return $this;
}