Development

Changeset 8316

You must first sign up to be able to contribute.

Changeset 8316

Show
Ignore:
Timestamp:
04/05/08 14:27:41 (6 months ago)
Author:
francois
Message:

sfPropelVersionableBehaviorPlugin Releasing 0.4 Beta

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPropelVersionableBehaviorPlugin/trunk/README

    r8166 r8316  
    9494}}} 
    9595 
    96 === Retrieving a resource version history === 
    97  
    98 {{{ 
    99 #!php 
    100 <?php 
    101  
    102 foreach ($article->getAllVersions() as $history_article) 
    103 { 
    104    echo sprintf("Version %d title : %s\n",  
    105                 $history_article->getVersion(), 
    106                 $history_article->getTitle() 
    107                 ); 
    108 } 
    109  
    110 /*  
    111  * Outputs: 
    112  * 
    113  * Version 1 title: First version of article 
    114  * Version 2 title: Second version of article 
    115  * Version 3 title: First version of article 
    116  */ 
    117 }}} 
    118  
    11996=== Conditional versioning === 
    12097 
     
    227204$article->save(); 
    228205}}} 
     206 
     207=== Retrieving a resource version history === 
    229208 
    230209Details about each revision are available in the object via the `getVersionCreatedBy` and `getVersionComment` methods. For instance, if you want to display a history of modifications, you can do as follows: 
     
    434413== Roadmap == 
    435414 
    436 === 0.4 === 
     415=== 0.5 === 
    437416 
    438417 * Make plugin compatible with sfPropel's i18n capabilities 
     
    441420== Changelog == 
    442421 
    443 === 2008-03-31 | Trunk === 
     422=== 2008-04-05 | Trunk === 
     423 
     424=== 2008-04-05 | 0.4.0 beta === 
    444425 
    445426 * francois: Made incremental storage rely on a real version comparison, rather than the array of modified columns. Fixes modified columns not being saved when using `toVersion`. 
  • plugins/sfPropelVersionableBehaviorPlugin/trunk/package.xml

    r8032 r8316  
    1717    <active>yes</active> 
    1818  </developer> 
    19   <date>2008-03-21</date> 
     19  <date>2008-04-05</date> 
    2020  <version> 
    21     <release>0.3.0</release> 
    22     <api>0.3.0</api> 
     21    <release>0.4.0</release> 
     22    <api>0.4.0</api> 
    2323  </version> 
    2424  <stability> 
     
    6464 </phprelease> 
    6565  <changelog> 
     66    <release> 
     67      <version> 
     68        <release>0.4.0</release> 
     69        <api>0.4.0</api> 
     70      </version> 
     71      <stability> 
     72        <release>beta</release> 
     73        <api>beta</api> 
     74      </stability> 
     75      <date>2008-04-05</date> 
     76      <license uri="http://www.symfony-project.com/license">MIT license</license> 
     77      <notes> 
     78* francois: Made incremental storage rely on a real version comparison, rather than the array of modified columns. Fixes modified columns not being saved when using `toVersion`. 
     79* francois: Added the ability to declare related objects to save at behavior declaration 
     80* francois: Fixed `ResourceVersion::getResourceInstance()` creates new objects and saving these objects creates a new row in the resource table (#3229) 
     81* francois: Added `isLastVersion()` method 
     82* francois: Avoid saving unchanged records to save database space (refs #3150) 
     83* francois: Added `ResourceAttributeVersion::getResourceVersions()` method 
     84* francois: Added `ResourceVersion::getResourceAttributeVersions()` method 
     85* francois: Avoid saving unchanged columns to save database space 
     86* francois: [BC Break] Added a `resource_attribute_version_hash` table, now middle table between versions and attributes 
     87      </notes> 
     88    </release> 
    6689    <release> 
    6790      <version>