From b6924e0f0dc3dbf27e416d748e68b0dd5119fe8c Mon Sep 17 00:00:00 2001 From: zYne Date: Wed, 28 Nov 2007 00:01:03 +0000 Subject: [PATCH] --- lib/Doctrine/Record/Abstract.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Record/Abstract.php b/lib/Doctrine/Record/Abstract.php index 0e799d7a0..e59a0afc7 100644 --- a/lib/Doctrine/Record/Abstract.php +++ b/lib/Doctrine/Record/Abstract.php @@ -36,7 +36,17 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access * @param Doctrine_Table $_table reference to associated Doctrine_Table instance */ protected $_table; - + + public function setTableDefinition() + { + + } + public function setUp() + { + + } + + /** * getTable * returns the associated table object @@ -284,6 +294,14 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access return $this; } + public function loadPlugin(Doctrine_Plugin $plugin) + { + $plugin->initialize($this->_table); + + $this->_table->addPlugin($plugin, get_class($plugin)); + } + + /** * actAs * loads the given plugin