Changeset 10786
- Timestamp:
- 08/11/08 19:02:33 (5 years ago)
- Files:
-
- plugins/sfPropelFinderPlugin/README_generator (modified) (1 diff)
- plugins/sfPropelFinderPlugin/lib/DbFinder.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelFinderPlugin/README_generator
r10592 r10786 46 46 with: [i18n, Category, Author] 47 47 48 *Note*: The resulting query contains a left join, while `sfPropelAdminGenerator` issues queries with a simple `where` condition. That means that even if you choose to hydrate related `Category` objects, the list view will still display `Article` objects with no `Category`. That's a huge difference with the usual generator , which hides records as soon as you declare a `peer_method`.48 *Note*: The resulting query contains a left join, while `sfPropelAdminGenerator` issues queries with a simple `where` condition. That means that even if you choose to hydrate related `Category` objects, the list view will still display `Article` objects with no `Category`. That's a huge difference with the usual generator based on Propel 1.2, which hides records as soon as you declare a `peer_method`. 49 49 50 50 TODO plugins/sfPropelFinderPlugin/lib/DbFinder.php
r10779 r10786 517 517 public function where() 518 518 { 519 call_user_func_array(array($this->adapter, 'where'), func_get_arg()); 519 $args = func_get_args(); 520 call_user_func_array(array($this->adapter, 'where'), $args); 520 521 521 522 return $this; … … 539 540 public function orWhere() 540 541 { 541 call_user_func_array(array($this->adapter, 'orWhere'), func_get_arg()); 542 $args = func_get_args(); 543 call_user_func_array(array($this->adapter, 'orWhere'), $args); 542 544 543 545 return $this; … … 670 672 public function join() 671 673 { 672 call_user_func_array(array($this->adapter, 'join'), func_get_arg()); 674 $args = func_get_args(); 675 call_user_func_array(array($this->adapter, 'join'), $args); 673 676 674 677 return $this;