add some mappings to event.wolf
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Tue, 18 Aug 2009 20:19:00 +0000 (20:19 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Tue, 18 Aug 2009 20:19:00 +0000 (20:19 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@336 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

wob/event.wolf

index 777b778..aead5b1 100644 (file)
@@ -99,6 +99,7 @@
                <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>