Changeset 8502
- Timestamp:
- 04/17/08 09:38:10 (6 months ago)
- Files:
-
- plugins/sfPropelFinderPlugin/README (modified) (1 diff)
- plugins/sfPropelFinderPlugin/lib/sfPropelFinder.php (modified) (1 diff)
- plugins/sfPropelFinderPlugin/test/unit/sfPropelFinderTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelFinderPlugin/README
r8398 r8502 296 296 == Changelog == 297 297 298 === 2008-04-10 | Trunk === 299 298 === 2008-04-17 | Trunk === 299 300 * jug: Fixed problem in a particular join case 300 301 * francois: Added `sfPropelFinder::with()` method (based on `sfPropelObjectPeerImpersonator::populateObjects()` code by hartym) 301 302 * francois: Added support for magic `andXXX()` and `orXXX()` methods. plugins/sfPropelFinderPlugin/lib/sfPropelFinder.php
r8396 r8502 551 551 if($relation = $this->findRelation(str_replace('Peer', '', $peerClass), $phpName.'Peer')) 552 552 { 553 return $relation;553 return array_reverse($relation); 554 554 } 555 555 } plugins/sfPropelFinderPlugin/test/unit/sfPropelFinderTest.php
r8396 r8502 425 425 $t->is($column2, CategoryPeer::ID, 'getRelation() guesses the two parts of a relation properly for many-to-one relationships'); 426 426 list($column1, $column2) = sfPropelFinder::from('Article')->getRelation('Comment'); 427 $t->is($column1, CommentPeer::ARTICLE_ID, 'getRelation() guesses the two parts of a relation properly for one-to-many relationships');428 $t->is($column2, ArticlePeer::ID, 'getRelation() guesses the two parts of a relation properly for one-to-many relationships');427 $t->is($column1, ArticlePeer::ID, 'getRelation() guesses the two parts of a relation properly for one-to-many relationships'); 428 $t->is($column2, CommentPeer::ARTICLE_ID, 'getRelation() guesses the two parts of a relation properly for one-to-many relationships'); 429 429 ArticlePeer::doDeleteAll(); 430 430 CategoryPeer::doDeleteAll();