/** * Returns resource instance corresponding to version. * * @return BaseObject */ public function getResourceInstance() { $resource_name = $this->getResourceName(); return sfPropelVersionableBehavior::populateResourceFromVersion(new $resource_name(), $this); }
/** * Sets object method used to decide if a new version should be created * * @param string */ public static function setVersionConditionMethod($method_name) { $previous_method = self::$condition_method; self::$condition_method = $method_name; return $previous_method; }