Development

Changeset 7110

You must first sign up to be able to contribute.

Changeset 7110

Show
Ignore:
Timestamp:
01/20/08 09:11:04 (10 months ago)
Author:
Carl.Vondrick
Message:

sfLucene: fixed undefined index notice for categories

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfLucenePlugin/branches/1.1/lib/config/sfLuceneProjectConfigHandler.class.php

    r7108 r7110  
    147147        if (!isset($model_config['validator'])) 
    148148        { 
    149           $model_config['validator'] = 'isIndexable'; 
     149          $model_config['validator'] = null; 
     150        } 
     151 
     152        if (!isset($model_config['categories'])) 
     153        { 
     154          $model_config['categories'] = array(); 
    150155        } 
    151156      } 
  • plugins/sfLucenePlugin/branches/1.1/test/bin/model/om/BaseFakeForum.php

    r6703 r7110  
    55 
    66 
    7  
     7   
    88  protected static $peer; 
    99 
    1010 
    11  
     11   
    1212  protected $id; 
    1313 
    1414 
    15  
     15   
    1616  protected $coolness; 
    1717 
    18  
     18   
    1919  protected $collFakeForumI18ns; 
    2020 
    21  
     21   
    2222  protected $lastFakeForumI18nCriteria = null; 
    2323 
    24  
     24   
    2525  protected $alreadyInSave = false; 
    2626 
    27  
     27   
    2828  protected $alreadyInValidation = false; 
    2929 
    30  
     30   
    3131  protected $culture; 
    3232 
    33  
     33   
    3434  public function getId() 
    3535  { 
     
    3838  } 
    3939 
    40  
     40   
    4141  public function getCoolness() 
    4242  { 
     
    4545  } 
    4646 
    47  
     47   
    4848  public function setId($v) 
    4949  { 
     
    5858    } 
    5959 
    60   } 
    61  
     60  }  
     61   
    6262  public function setCoolness($v) 
    6363  { 
     
    6868    } 
    6969 
    70   } 
    71  
     70  }  
     71   
    7272  public function hydrate(ResultSet $rs, $startcol = 1) 
    7373  { 
     
    8282      $this->setNew(false); 
    8383 
    84             return $startcol + 2; 
     84            return $startcol + 2;  
    8585    } catch (Exception $e) { 
    8686      throw new PropelException("Error populating FakeForum object", $e); 
     
    8888  } 
    8989 
    90  
     90   
    9191  public function delete($con = null) 
    9292  { 
     
    119119      throw $e; 
    120120    } 
    121  
     121   
    122122 
    123123    foreach (sfMixer::getCallables('BaseFakeForum:delete:post') as $callable) 
     
    127127 
    128128  } 
    129  
     129   
    130130  public function save($con = null) 
    131131  { 
     
    160160      return $affectedRows; 
    161161    } catch (PropelException $e) { 
    162     sfException::createFromException($e)->printStackTrace(); 
    163162      $con->rollback(); 
    164163      throw $e; 
     
    166165  } 
    167166 
    168  
     167   
    169168  protected function doSave($con) 
    170169  { 
     
    176175        if ($this->isNew()) { 
    177176          $pk = FakeForumPeer::doInsert($this, $con); 
    178  
    179           $affectedRows += 1; 
    180           $this->setId($pk); 
     177          $affectedRows += 1;                                           
     178          $this->setId($pk);   
    181179          $this->setNew(false); 
    182180        } else { 
     
    196194    } 
    197195    return $affectedRows; 
    198   } 
    199  
     196  }  
     197   
    200198  protected $validationFailures = array(); 
    201199 
    202  
     200   
    203201  public function getValidationFailures() 
    204202  { 
     
    206204  } 
    207205 
    208  
     206   
    209207  public function validate($columns = null) 
    210208  { 
     
    219217  } 
    220218 
    221  
     219   
    222220  protected function doValidate($columns = null) 
    223221  { 
     
    249247  } 
    250248 
    251  
     249   
    252250  public function getByName($name, $type = BasePeer::TYPE_PHPNAME) 
    253251  { 
     
    256254  } 
    257255 
    258  
     256   
    259257  public function getByPosition($pos) 
    260258  { 
     
    271269    }   } 
    272270 
    273  
     271   
    274272  public function toArray($keyType = BasePeer::TYPE_PHPNAME) 
    275273  { 
     
    282280  } 
    283281 
    284  
     282   
    285283  public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) 
    286284  { 
     
    289287  } 
    290288 
    291  
     289   
    292290  public function setByPosition($pos, $value) 
    293291  { 
     
    301299    }   } 
    302300 
    303  
     301   
    304302  public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) 
    305303  { 
     
    310308  } 
    311309 
    312  
     310   
    313311  public function buildCriteria() 
    314312  { 
     
    321319  } 
    322320 
    323  
     321   
    324322  public function buildPkeyCriteria() 
    325323  { 
     
    331329  } 
    332330 
    333  
     331   
    334332  public function getPrimaryKey() 
    335333  { 
     
    337335  } 
    338336 
    339  
     337   
    340338  public function setPrimaryKey($key) 
    341339  { 
     
    343341  } 
    344342 
    345  
     343   
    346344  public function copyInto($copyObj, $deepCopy = false) 
    347345  { 
     
    357355      } 
    358356 
    359     } 
     357    }  
    360358 
    361359    $copyObj->setNew(true); 
    362360 
    363     $copyObj->setId(NULL); 
    364   } 
    365  
    366  
     361    $copyObj->setId(NULL);  
     362  } 
     363 
     364   
    367365  public function copy($deepCopy = false) 
    368366  { 
     
    373371  } 
    374372 
    375  
     373   
    376374  public function getPeer() 
    377375  { 
     
    382380  } 
    383381 
    384  
     382   
    385383  public function initFakeForumI18ns() 
    386384  { 
     
    390388  } 
    391389 
    392  
     390   
    393391  public function getFakeForumI18ns($criteria = null, $con = null) 
    394392  { 
     
    413411    } else { 
    414412            if (!$this->isNew()) { 
    415  
     413                         
    416414 
    417415        $criteria->add(FakeForumI18nPeer::ID, $this->getId()); 
     
    427425  } 
    428426 
    429  
     427   
    430428  public function countFakeForumI18ns($criteria = null, $distinct = false, $con = null) 
    431429  { 
     
    443441  } 
    444442 
    445  
     443   
    446444  public function addFakeForumI18n(FakeForumI18n $l) 
    447445  { 
     
    526524 
    527525 
    528 } 
     526}