1
0
mirror of synced 2025-01-30 12:01:44 +03:00

Made loadTemplate() simply call actAs() rather than duplicating code. Original loadTemplate() was broken anyways, addTemplate() was never called

This commit is contained in:
Jonathan.Wage 2007-09-12 16:06:33 +00:00
parent e7c3c9b333
commit 0d84bcd2af

View File

@ -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