Commit 0fb5f147 authored by runa's avatar runa

added addTable and getTables methods

parent a94c714a
...@@ -41,7 +41,7 @@ class Doctrine_Schema_Database extends Doctrine_Schema_Object { ...@@ -41,7 +41,7 @@ class Doctrine_Schema_Database extends Doctrine_Schema_Object {
'version' => null, 'version' => null,
'engine' => null); 'engine' => null);
private $childs = array();
/** /**
* *
...@@ -73,6 +73,15 @@ class Doctrine_Schema_Database extends Doctrine_Schema_Object { ...@@ -73,6 +73,15 @@ class Doctrine_Schema_Database extends Doctrine_Schema_Object {
* @access public * @access public
*/ */
public function addTable( $table = null ) { public function addTable( $table = null ) {
$this->childs[] = $table;
}
/**
*
* @return array of Doctrine_Schema_Table
*
*/
public function getTables() {
return $this->childs;
} }
} }
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