public function objectMethods(PHP5ObjectBuilder $builder) { if ($this->withUpdatedAt()) { return "\n/**\n * Mark the current object so that the update date doesn't get updated during next save\n *\n * @return " . $builder->getStubObjectBuilder()->getClassname() . " The current object (for fluent API support)\n */\npublic function keepUpdateDateUnchanged()\n{\n \$this->modifiedColumns[] = " . $this->getColumnConstant('update_column', $builder) . ";\n\n return \$this;\n}\n"; } }
protected function addEnforceVersioning(&$script) { $objectClass = $this->builder->getStubObjectBuilder()->getClassname(); $script .= "\n/**\n * Enforce a new Version of this object upon next save.\n *\n * @return {$objectClass}\n */\npublic function enforceVersioning()\n{\n \$this->enforceVersion = true;\n\n return \$this;\n}\n "; }