public function loadall() { //prevent double request if ($this->all_loaded) { return; } $this->all_loaded = true; return parent::loadall(); }