Changeset 8316
- Timestamp:
- 04/05/08 14:27:41 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelVersionableBehaviorPlugin/trunk/README
r8166 r8316 94 94 }}} 95 95 96 === Retrieving a resource version history ===97 98 {{{99 #!php100 <?php101 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 article114 * Version 2 title: Second version of article115 * Version 3 title: First version of article116 */117 }}}118 119 96 === Conditional versioning === 120 97 … … 227 204 $article->save(); 228 205 }}} 206 207 === Retrieving a resource version history === 229 208 230 209 Details 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: … … 434 413 == Roadmap == 435 414 436 === 0. 4===415 === 0.5 === 437 416 438 417 * Make plugin compatible with sfPropel's i18n capabilities … … 441 420 == Changelog == 442 421 443 === 2008-03-31 | Trunk === 422 === 2008-04-05 | Trunk === 423 424 === 2008-04-05 | 0.4.0 beta === 444 425 445 426 * 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 17 17 <active>yes</active> 18 18 </developer> 19 <date>2008-0 3-21</date>19 <date>2008-04-05</date> 20 20 <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> 23 23 </version> 24 24 <stability> … … 64 64 </phprelease> 65 65 <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> 66 89 <release> 67 90 <version>