<Property name="title" type="string"/>
<Property name="artist" type="Artist"/>
<Property name="room" type="string"/>
+ <Property name="seatplanid" type="int"/>
<Property name="iscancelled" type="bool"/>
<Property name="cancelreason" type="string"/>
<Property name="amountSold" type="int"/>
</Map>
<Map column="description"/>
<Map column="comment"/>
- <!--timing and location-->
<Map column="starttime" property="start"/>
<Map column="endtime" property="end"/>
<Map column="roomid" property="room"/>
- <!--Map column="seatplanid"/-->
- <!--initially a copy from room, can be adjusted-->
+ <Map column="seatplanid"/>
<Map column="capacity"/>
- <!-- flags -->
<Map column="iscancelled"/>
<Map column="flags"/>
<Map column="tax"/>
- <!-- reason the event has been cancelled-->
<Map column="cancelreason"/>
</Mapping>
</Class>
<Property name="id" type="string"/>
<Property name="capacity" type="int"/>
<Property name="description" type="string"/>
+
+ <Mapping table="room">
+ <Map column="roomid" property="id"/>
+ <Map column="capacity"/>
+ <Map column="description"/>
+ </Mapping>
</Class>
<Transaction name="GetEvent">
<Input>
<Var name="eventid" type="int"/>
</Input>
- <Call lang="php" method="GetEventXml2($this);"/>
+ <Call lang="php" method="$this->setevent(WOEvent::fromTableevent(WTEvent::getFromDB($this->geteventid())));"/>
<Output>
<Var name="event" type="Event"/>
</Output>
<Transaction name="GetAllRooms">
<Input/>
+ <Call lang="php" method="$this->setrooms(WORoom::getFromTableArrayroom(WTRoom::selectFromDB('')));"/>
<Output>
<Var name="rooms" type="List:Room"/>
</Output>