/** * Recursive root catalogue accessor * * @return self */ function getRootCatalogue() { if (!$this->pere_id) { return $this; } $this->loadParent(); return $this->_ref_pere->getRootCatalogue(); }
/** * Recursive root catalogue accessor */ function getRootCatalogue() { $this->loadCatalogue(); return $this->_ref_root_catalogue = $this->_ref_catalogue_labo->getRootCatalogue(); }