public function getRooms($activities = null) { $result = $this->getDirectRooms($activities); $children = ZonePeer::doSelectChildrenZones($this->getId()); foreach ($children as $child) { $result = array_merge($result, $child->getRooms($activities)); } return array_unique($result); }