Made loadTemplate() simply call actAs() rather than duplicating code. Original loadTemplate() was broken anyways, addTemplate() was never called
This commit is contained in:
parent
e7c3c9b333
commit
0d84bcd2af
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user