Commit 0d84bcd2 authored by Jonathan.Wage's avatar Jonathan.Wage

Made loadTemplate() simply call actAs() rather than duplicating code. Original...

Made loadTemplate() simply call actAs() rather than duplicating code. Original loadTemplate() was broken anyways, addTemplate() was never called
parent e7c3c9b3
...@@ -246,13 +246,7 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access ...@@ -246,13 +246,7 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access
*/ */
public function loadTemplate($template, array $options = array()) public function loadTemplate($template, array $options = array())
{ {
$tpl = new $template($options); $this->actAs($template, $options);
$tpl->setTable($this->_table);
$tpl->setUp();
$tpl->setTableDefinition();
return $this;
} }
/** /**
* actAs * actAs
......
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