diff --git a/lib/Doctrine/Record/Abstract.php b/lib/Doctrine/Record/Abstract.php index 9414a9321..623dc9b98 100644 --- a/lib/Doctrine/Record/Abstract.php +++ b/lib/Doctrine/Record/Abstract.php @@ -246,13 +246,7 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access */ public function loadTemplate($template, array $options = array()) { - $tpl = new $template($options); - $tpl->setTable($this->_table); - - $tpl->setUp(); - - $tpl->setTableDefinition(); - return $this; + $this->actAs($template, $options); } /** * actAs