Changeset 10772
- Timestamp:
- 08/11/08 12:16:05 (3 months ago)
- Files:
-
- plugins/sfPropelFinderPlugin/README (modified) (1 diff)
- plugins/sfPropelFinderPlugin/lib/sfModelFinder.php (modified) (1 diff)
- plugins/sfPropelFinderPlugin/test/unit/sfPropelFinderPagerTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelFinderPlugin/README
r10765 r10772 558 558 ### 2008-07-07 | 0.3.0 Beta 559 559 560 * mrhyde: Fixed problem with `sfPropelFinder`, symfony cache, and Propel 1.3 560 561 * francois: Added `sfPropelFinder::combine()` method to handle complex queries with And and Or 561 562 * francois: Added support for `with()` in `findPk()` (and documented the method) plugins/sfPropelFinderPlugin/lib/sfModelFinder.php
r10771 r10772 230 230 } 231 231 232 232 public function __sleep() 233 { 234 // If the connection is a PDO instance, PHP throws an exception when serializing a finder object 235 // So we must ply well with it 236 $attributes = get_object_vars($this); 237 unset($attributes['connection']); 238 return array_keys($attributes); 239 } 233 240 } plugins/sfPropelFinderPlugin/test/unit/sfPropelFinderPagerTest.php
r10664 r10772 49 49 50 50 // cleanup database 51 AuthorPeer::doDeleteAll(); 52 CommentPeer::doDeleteAll(); 53 CategoryPeer::doDeleteAll(); 51 54 ArticlePeer::doDeleteAll(); 52 55 53 $t = new lime_test(3 1, new lime_output_color());56 $t = new lime_test(32, new lime_output_color()); 54 57 55 58 $article1 = new Article(); … … 165 168 'getResults() does not repeat conditions' 166 169 ); 170 171 $t->diag('sfPropelFinderPager issues with symfony cache'); 172 173 try 174 { 175 serialize($pager); 176 $t->pass('A pager can be serialized'); 177 } 178 catch(Exception $e) 179 { 180 $t->fail('A pager can be serialized'); 181 }