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
1 changed files with 1 additions and 7 deletions
|
@ -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…
Add table
Reference in a new issue