Changeset 1614

Show
Ignore:
Timestamp:
06/02/08 15:23:48 (3 months ago)
Author:
mikey
Message:

add possibility to set the default order for an entity for cases where more then one instance should be fetched

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/resources/xsl/stub.xsl

    r1608 r1614  
    266266      </xsl:attribute> 
    267267      <xsl:copy-of select="@*[local-name() != 'class']"/> 
     268      <ixsl:if> 
     269        <xsl:attribute name="test"> 
     270          <xsl:text>/document/request/value[@name = '</xsl:text> 
     271          <xsl:value-of select="@id"/> 
     272          <xsl:text>_</xsl:text> 
     273          <xsl:value-of select="@id"/> 
     274          <xsl:text>']/errors</xsl:text> 
     275        </xsl:attribute> 
     276        <ixsl:for-each> 
     277          <xsl:attribute name="select"> 
     278            <xsl:text>/document/request/value[@name = '</xsl:text> 
     279            <xsl:value-of select="@id"/> 
     280            <xsl:text>_</xsl:text> 
     281            <xsl:value-of select="@id"/> 
     282            <xsl:text>']/errors/error</xsl:text> 
     283          </xsl:attribute> 
     284          <span class="form_error"> 
     285            <ixsl:choose> 
     286              <ixsl:when> 
     287                <xsl:attribute name="test"> 
     288                  <xsl:text>messages/message[@locale = '</xsl:text> 
     289                  <xsl:value-of select="$lang"/> 
     290                  <xsl:text>']</xsl:text> 
     291                </xsl:attribute> 
     292                <ixsl:value-of> 
     293                  <xsl:attribute name="select"> 
     294                    <xsl:text>messages/message[@locale = '</xsl:text> 
     295                    <xsl:value-of select="$lang"/> 
     296                    <xsl:text>']/content</xsl:text> 
     297                  </xsl:attribute> 
     298                </ixsl:value-of> 
     299              </ixsl:when> 
     300              <ixsl:when> 
     301                <xsl:attribute name="test"> 
     302                  <xsl:text>messages/message[@locale = '</xsl:text> 
     303                  <xsl:value-of select="$lang_base"/> 
     304                  <xsl:text>']</xsl:text> 
     305                </xsl:attribute> 
     306                <ixsl:value-of> 
     307                  <xsl:attribute name="select"> 
     308                    <xsl:text>messages/message[@locale = '</xsl:text> 
     309                    <xsl:value-of select="$lang_base"/> 
     310                    <xsl:text>']/content</xsl:text> 
     311                  </xsl:attribute> 
     312                </ixsl:value-of> 
     313              </ixsl:when> 
     314              <ixsl:otherwise> 
     315                <ixsl:value-of select="messages/message[@locale = 'default']/content"/> 
     316              </ixsl:otherwise> 
     317            </ixsl:choose> 
     318          </span> 
     319        </ixsl:for-each> 
     320      </ixsl:if> 
    268321      <ul> 
    269322      <xsl:apply-templates/> 
     
    453506            <xsl:text>']/errors/error</xsl:text> 
    454507          </xsl:attribute> 
    455           <br/><span class="form_error"> 
     508          <br/><span class="form_field_error"> 
    456509            <ixsl:choose> 
    457510              <ixsl:when> 
  • trunk/src/test/php/net/stubbles/rdbms/RDBMSTestSuite.php

    r1403 r1614  
    4747        // persistence 
    4848        $suite->addTestFile($dir . '/persistence/stubSetterMethodHelperTestCase.php'); 
     49        $suite->addTestFile($dir . '/persistence/annotation/stubEntityAnnotationTestCase.php'); 
    4950        $suite->addTestFile($dir . '/persistence/creator/stubDatabaseCreatorTestCase.php'); 
    5051        $suite->addTestFile($dir . '/persistence/eraser/stubDatabaseEraserTestCase.php');