Development

Changeset 8580

You must first sign up to be able to contribute.

Changeset 8580

Show
Ignore:
Timestamp:
04/21/08 15:16:24 (5 months ago)
Author:
naholyr
Message:

[nahoPropelOptimizer] Fix #3368

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/nahoPropelOptimizerPlugin/lib/SfOptimizedObjectBuilder.php

    r8458 r8580  
    3131      $return = 'return $this->' . $varName . ';'; 
    3232      $check_null_hydrated_script = ' 
    33       if (!$this->' . $varName . '->isNew() && is_null($this->' . $varName . '->getPrimaryKey())) { 
     33      if (!is_null($this->' . $varName . ') && !$this->' . $varName . '->isNew() && is_null($this->' . $varName . '->getPrimaryKey())) { 
    3434        return NULL; 
    3535      }