Commit 4f996de8 authored by Jonathan.Wage's avatar Jonathan.Wage

Updated generated accessors to have load argument.

parent c5daa231
......@@ -172,15 +172,15 @@ END;
$ret = '';
foreach ($columns as $name => $column) {
// getters
$ret .= "\n\tpublic function get".Doctrine::classify($name)."()\n";
$ret .= "\n\tpublic function get".Doctrine::classify($name)."(\$load = true)\n";
$ret .= "\t{\n";
$ret .= "\t\treturn \$this->get('{$name}');\n";
$ret .= "\t\treturn \$this->get('{$name}', \$load);\n";
$ret .= "\t}\n";
// setters
$ret .= "\n\tpublic function set".Doctrine::classify($name)."(\${$name})\n";
$ret .= "\n\tpublic function set".Doctrine::classify($name)."(\${$name}, \$load = true)\n";
$ret .= "\t{\n";
$ret .= "\t\treturn \$this->set('{$name}', \${$name});\n";
$ret .= "\t\treturn \$this->set('{$name}', \${$name}, \$load);\n";
$ret .= "\t}\n";
}
......@@ -492,4 +492,4 @@ END;
throw new Doctrine_Import_Builder_Exception("Couldn't write file " . $options['fileName']);
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment