private function removeFromManager() { if ($this->manager !== null) { $this->manager->remove($this); } return $this; }