Commit 8779a383 authored by zYne's avatar zYne

Constructor template method added

parent fcce6bd2
...@@ -201,6 +201,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite ...@@ -201,6 +201,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
$repository = $this->_table->getRepository(); $repository = $this->_table->getRepository();
$repository->add($this); $repository->add($this);
} }
$this->construct();
} }
/** /**
* initNullObject * initNullObject
...@@ -225,6 +226,14 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite ...@@ -225,6 +226,14 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
* @return void * @return void
*/ */
public function setUp() { } 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 * getOID
* returns the object identifier * returns the object identifier
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment