/** * This app only cares about equipments as belonging to a certain room, * not for example, all of them globally, so Equipments instances are tied * to one certain Room. * @param \Rooms\Model\Room $room * @return $this */ public function init(Room $room) { $this->room = $room; $this->setServiceLocator($room->getServiceLocator()); $this->set_init(); return $this; }