I have this methods in class:
public function getOffServers(){
$off = $this->Children()->filter('Official', 1);
Debug::show($off);
return $off;
}
public function getNotOffServers(){
$noff = $this->Children()->filter('Official', 0);
Debug::show($noff);
return $noff;
}
public function getServers(){
$s = $this->Children();
Debug::show($s);
return $s;
}
'getOffServers' - i am calling this one first in template, this method works ok but if call "getNotOffServers" i get emply list and when i am calling 'getServers' - i have the same list as 'getOffServers' (not all children), if i am using in template "<% loop children %>" after 'getOffServers' i have just part of chilren (the list is the same as for 'getOffServers' ), do you have ideas ?