public function removeReference($object) { $this->super_removeReference($object); // adding extra cleaning if ($this->isTmpAddr() && $this->countReferences() == 0 && $this->owner !== null) { $this->owner->remove($this); } }