Development

Changeset 10786

You must first sign up to be able to contribute.

Changeset 10786

Show
Ignore:
Timestamp:
08/11/08 19:02:33 (5 years ago)
Author:
francois
Message:

sfPropelFinderPlugin Fixed typo in DbFinder magic

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPropelFinderPlugin/README_generator

    r10592 r10786  
    4646      with:    [i18n, Category, Author] 
    4747 
    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`. 
    4949 
    5050TODO 
  • plugins/sfPropelFinderPlugin/lib/DbFinder.php

    r10779 r10786  
    517517  public function where() 
    518518  { 
    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); 
    520521     
    521522    return $this; 
     
    539540  public function orWhere() 
    540541  { 
    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); 
    542544     
    543545    return $this; 
     
    670672  public function join() 
    671673  { 
    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); 
    673676     
    674677    return $this;