From 8779a3833242c02d90ac1eeda6421ed2c11f61ed Mon Sep 17 00:00:00 2001 From: zYne Date: Sat, 2 Dec 2006 14:48:02 +0000 Subject: [PATCH] Constructor template method added --- lib/Doctrine/Record.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index 8e811794e..b441cf702 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -201,6 +201,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite $repository = $this->_table->getRepository(); $repository->add($this); } + $this->construct(); } /** * initNullObject @@ -225,6 +226,14 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite * @return void */ public function setUp() { } + /** + * construct + * Empty tempalte method to provide concrete Record classes with the possibility + * to hook into the constructor procedure + * + * @return void + */ + public function construct() { } /** * getOID * returns the object identifier