/** * inherited values are not synced in the DB to child category that inherit from them - but should be returned on the object. * (values are copied upon update inhertance from inherited to manual) */ public function getPendingMembersCount() { if ($this->getInheritanceType() == InheritanceType::INHERIT) { $inheritPartner = $this->getInheritParent(); if ($inheritPartner->getId() != $this->getId()) { return $this->getInheritParent()->getPendingMembersCount(); } } return parent::getPendingMembersCount(); }