Changeset 1066 for branches

Show
Ignore:
Timestamp:
07/17/08 07:33:35 (3 months ago)
Author:
ron
Message:

Added call to parent's constructor to om class' constructor. Added empty constructor to BaseObject. Fixes #656

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.3/generator/classes/propel/engine/builder/om/php5/PHP5ObjectBuilder.php

    r1062 r1066  
    498498        protected function addConstructorBody(&$script) { 
    499499                $script .= " 
     500                parent::__construct(); 
    500501                \$this->applyDefaultValues();"; 
    501502        } 
  • branches/1.3/runtime/classes/propel/om/BaseObject.php

    r621 r1066  
    5353 
    5454        /** 
     55         * Empty constructor (this allows people with their own BaseObject implementation to use its constructor) 
     56         */ 
     57        public function __construct() { 
     58 
     59        } 
     60 
     61        /** 
    5562         * Returns whether the object has been modified. 
    5663         *